Cannot npm install package
sw00d opened this issue · comments
Samuel Wood commented
I'm getting an error trying to run sudo npm install create-elm-app -g
on linux:
ERR { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/create-elm-app/node_modules/elmi-to-json/unpacked_bin'
Any ideas?
Eduard Kyvenko commented
Hi Samuel!
NPM is known for having permission issues when installing globally on UNIX.
Here are the possible solutions:
- Resolving EACCES permissions errors when installing packages globally
- Using Node Version Manager, which uses a better place for installing Node and packages effectively solving the problem
Let me know if this is helpful!
Eduard Kyvenko commented
Feel free to re-open this if you have further questions!