Question: :thinking_face: are you using native modules in your project? or is "native-modules": true something you need for elm-github-install

Asked By
Asked At
2017-08-01 17:42:24

Found 15 possible answers.

User Answered At Possible Answer
eeue56 2017-08-01 17:45:55
evax 2017-08-01 17:56:34 yes, I added that and yes, I ran elm-github-install before elm-test
simonh 2017-08-02 05:33:01 I'm having trouble following the install instructions I also tried npm i elm-interface-to-json -g separately, but that too failed with a similar error normally an EACCES issue is about sudo but I was running with that i'm on ubuntu 17.04 with node 8.2.1 i had something similar a month ago and i think the only solution was to use elm-test-3 npm ERR! Failed at the elm-test@0.18.7 install script.
npm ERR! 
npm ERR! Exit status 1
npm ERR! elm-test@0.18.7 install: `node install.js`
npm ERR! errno 1
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/elm-test/node_modules/fsevents):
Error extracting   - Error: EACCES: permission denied, open '/usr/lib/node_modules/elm-test/bin/elm-interface-to-json'
> node install.js
> elm-test@0.18.7 install /usr/lib/node_modules/elm-test
sudo npm install -g elm-test/usr/bin/elm-test -> /usr/lib/node_modules/elm-test/bin/elm-test
evax 2017-08-02 07:50:12 @simonh the error's from there: maybe this:
simonh 2017-08-02 07:53:45 hmm, can you see away around the error - i.e. to manualy get to an installed satte
evax 2017-08-02 07:54:07 I think you should fix the permission on that directory manually and it should work what's the output of ls -alh /usr/bin/node_modules/elm-test ?
simonh 2017-08-02 07:55:37 ls -alh /usr/bin/node_modules/elm-test ls: cannot access '/usr/bin/node_modules/elm-test': No such file or directory
evax 2017-08-02 07:56:27 ah typo sorry, ls -alh /usr/lib/node_modules/elm-test
ilias 2017-08-02 07:58:11 one alternative is simply not installing it globally. npm i elm-test and npm run elm-test -- init _should_ work at the cost of ending up with a package.json in Elm projects; which is a tradeoff. though it depends a little on what you do. I tend to work on many different projects that might be on different versions of elm-test , so I tend to work with project-local dependencies
evax 2017-08-02 08:04:31 that's what I do to (btw @kofi @eeue56 I deleted all possible caches and installed with elm-github-install again and it started working again)
simonh 2017-08-02 11:07:38 ls -alh /usr/lib/node_modules/elm-test installing locally seems to complete successfully I tried manually creating the hierarchy of folders to /usr/lib/node_modules/elm-test/bin/elm-interface-to-json but it kept getting deleted when i ran npm i -g elm-test ls: cannot access '/usr/lib/node_modules/elm-test': No such file or directory
evax 2017-08-02 11:30:10 then the issue might be up a dir
simonh 2017-08-02 11:35:03 ... but i was using sudo
evax 2017-08-02 12:28:37 yes, but there seems to be an issue with the node-tar library (and ubuntu 17.04 might have a default umask favoring this)
eeue56 2017-08-02 12:30:42 @simonh I really highly recommend following this:

Related Questions