evancz / elm-architecture-tutorial

How to create modular Elm code that scales nicely with your app
https://guide.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
4.17k stars 738 forks source link

Missing packages!? #108

Closed kristianmandrup closed 7 years ago

kristianmandrup commented 7 years ago

Total Elm nOOb. Trying to follow install/run instructions...

17:00 $ git clone https://github.com/evancz/elm-architecture-tutorial.git
Cloning into 'elm-architecture-tutorial'...
remote: Counting objects: 649, done.
remote: Total 649 (delta 0), reused 0 (delta 0), pack-reused 649
Receiving objects: 100% (649/649), 335.05 KiB | 0 bytes/s, done.
Resolving deltas: 100% (385/385), done.
✔ ~/repos/elm-projs 
17:00 $ cd elm-architecture-tutorial/
17:01 $ elm-reactor
elm reactor 0.16.0
Listening on http://0.0.0.0:8000/

Open http://0.0.0.0:8000/ in Chrome 57. When I click the first example http://0.0.0.0:8000/examples/01-button.elm

I get

Could not find package evancz/elm-markdown.

Maybe your elm-stuff/ directory has been corrupted? You can usually fix stuff
like this by deleting elm-stuff/ and rebuilding your project.

I looked at #94 but to no avail. I tried running elm package install but I can see that elm-stuff/packages is still empty.

What is the correct way for installing required dependencies/packages?

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

kristianmandrup commented 7 years ago

On further investigation, looks like I have an old Elm version 0.16 installed on my Mac. However I've just installed 0.18 via brew. When using the Installer on the official page it is still 0.16 Elm Platform. Figured out I can upgrade via npm: npm install -g elm Cheers!

kristianmandrup commented 7 years ago

That did the trick. Had to remove elm-stuff and relaunch reactor!