This is as much a question on how to start it up as an issue. Perhaps you could clarify in the README for those of us not familiar with Elm?
This all takes place on a Mac.
What I did:
- Deleted everything related to Elm for a clean start
- Ran
npm install -g elm@0.18 to install Elm 0.18
- Ran
npm install -g elm-live to install Elm-Live
- Ran the three following commands in succession:
elm make src/Main.elm --output=build/main.js
elm package install
elm live src/Main.elm --open -- --output=build/main.js --debug
- Blank page for
http://localhost:8000 opens
Elm 0.18: I assume that you're using Elm 0.18, based on /elm-stuff/build-artifacts/0.18.0 folder's name and elm package install being in Makefile, was deprecated in 0.19. It also doesn't run with with 0.19 anyway, giving elm package install | There is no package command.
Elm Live: According to the site, elm-live.com, one should run npm install elm-live@prev --save-dev to install it for Elm 0.18. However, this makes a file called elm-live (alias) and then errors upon opening in Finder with a pop-up: The operation can’t be completed because the original item for “elm-live” can’t be found. That's some weird Mac/Elm-Live/Elm 0.18 issue, not yours. But couldn't find a solution online. Just letting you know in case installing elm-live instead of elm-live@prev could be the issue!
Running: As I understand, make install run simply runs ./Makefile, which runs the first two lines above and finally elm live src/Main.elm --output=build/main.js --open --debug. However, that last line errors saying -- Output In Wrong Location*. And indeed, according to the section on flags in elm-live.com both it and debug are in the wrong spot. So I re-organized the flags as I understand they should be: elm live src/Main.elm --open -- --output=build/main.js --debug
Final Note: Again, this was my first exposure to Elm, which I'm really intrigued by now! (Not due to this mess, but based on their try & tutorial pages.) Anyway, so after a bit over an hour of googling and tinkering, esp. since installing Elm installed 0.19, didn't install elm-live and didn't teach me how to use the elm live flags, this was the closest I was able to come to starting it up.
*Full error message continues: You have used the elm make flag --output in the wrong location. As seen in the usage example about, all elm make flags must be added to your command after the -- separator.
This is as much a question on how to start it up as an issue. Perhaps you could clarify in the README for those of us not familiar with Elm?
This all takes place on a Mac.
What I did:
npm install -g elm@0.18to install Elm 0.18npm install -g elm-liveto install Elm-Liveelm make src/Main.elm --output=build/main.jselm package installelm live src/Main.elm --open -- --output=build/main.js --debughttp://localhost:8000opensElm 0.18: I assume that you're using Elm 0.18, based on
/elm-stuff/build-artifacts/0.18.0folder's name andelm package installbeing inMakefile, was deprecated in 0.19. It also doesn't run with with 0.19 anyway, givingelm package install | There is no package command.Elm Live: According to the site, elm-live.com, one should run
npm install elm-live@prev --save-devto install it for Elm 0.18. However, this makes a file calledelm-live (alias)and then errors upon opening in Finder with a pop-up: The operation can’t be completed because the original item for “elm-live” can’t be found. That's some weird Mac/Elm-Live/Elm 0.18 issue, not yours. But couldn't find a solution online. Just letting you know in case installingelm-liveinstead ofelm-live@prevcould be the issue!Running: As I understand,
make install runsimply runs./Makefile, which runs the first two lines above and finallyelm live src/Main.elm --output=build/main.js --open --debug. However, that last line errors saying-- Output In Wrong Location*. And indeed, according to the section on flags in elm-live.com both it and debug are in the wrong spot. So I re-organized the flags as I understand they should be:elm live src/Main.elm --open -- --output=build/main.js --debugFinal Note: Again, this was my first exposure to Elm, which I'm really intrigued by now! (Not due to this mess, but based on their try & tutorial pages.) Anyway, so after a bit over an hour of googling and tinkering, esp. since installing Elm installed 0.19, didn't install elm-live and didn't teach me how to use the
elm liveflags, this was the closest I was able to come to starting it up.*Full error message continues: You have used the elm make flag --output in the wrong location. As seen in the usage example about, all elm make flags must be added to your command after the -- separator.