New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't require global elm install "npm -g" #880

Closed
raould opened this Issue Jun 25, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@raould

raould commented Jun 25, 2017

I prefer to avoid doing global npm installs whenever possible. So I did "npm install elm" but I get the dreaded error. It would be nice if elm could somehow work in a project-local setting.

$ which elm
./node_modules/.bin/elm
$ elm
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/user/Documents/x/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm ENOENT
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19)
    at onErrorNT (internal/child_process.js:366:16)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
    at Function.Module.runMain (module.js:607:11)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Jun 25, 2017

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.

process-bot commented Jun 25, 2017

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.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Jul 8, 2017

Member

Can you retarget this issue to https://github.com/elm-lang/elm-platform which is where the installer code lives? The npm installer is managed by @rtfeldman, so he'd know more about what might be going on in this case. Nonetheless, the place to continue this discussion is on elm-platform!

Member

evancz commented Jul 8, 2017

Can you retarget this issue to https://github.com/elm-lang/elm-platform which is where the installer code lives? The npm installer is managed by @rtfeldman, so he'd know more about what might be going on in this case. Nonetheless, the place to continue this discussion is on elm-platform!

@evancz evancz closed this Jul 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment