-
Notifications
You must be signed in to change notification settings - Fork 125
Fail of npm install -g elm on linux systems. #236
Comments
I'm not able to install as well, using
On Ubuntu 16.04. |
Changing the default npm directory as listed here (https://docs.npmjs.com/getting-started/fixing-npm-permissions) and trying again gets me an ELIFECYCLE error
Strangely , it seems to have installed properly anyways. I'm not entirely sure what's happened. |
I'm not an npm expert, but I think many of these problems may be related to file permissions. On Linux systems, by default "npm install -g <package" will try to install packages under /usr/local. That requires root privileges, aka sudo, and is rarely what you want. On Linux systems, the /usr/local area is for packages that you have built yourself, and are installing for all users. Instead, what you probably want, is to create a directory under your home directory, where you install npm tools that you want to use across many projects. As cornjuliox notes, detailed instructions for how to do that are here: https://docs.npmjs.com/getting-started/fixing-npm-permissions I just created a pull request to add a link to that document to the installation instructions. |
Same problem with Ubuntu 18.04 |
I have the same issue even when running the install command with sudo, even running it as root ... This happens to me on Fedora 28, with node 8.11.3 and npm 5.6.0 here a gist of the npm debug log: https://gist.github.com/VinceMacBuche/f1baf62388755167ea5c32c1258fce5c Maybe a change in Node 8.11 ? (released in March ...) |
I finally manage to install it using sudo npm install -g elm --unsafe-perm=true --allow-root I remembered that it was an option that could be necessary for elm-github-install so i tried with elm, i guess some perms / file owner are not corresponding to Node/npm standard ... Note that i found that this issue is quite common among other libs (found several links about a lifecycle issue) that were few month old ( From March to May) all about Node 8.11 |
I get a failure when using npm install on my linux system. I get the ELIFECYCLE error. I've retried it on two different linux systems with the same outcome.
The text was updated successfully, but these errors were encountered: