heckPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } npm ERR!
Asked
Active
Viewed 334 times
-1
-
your question need to be edited & formatted. You should explain what did you tried and show some code that you think it's relative to your issue – Greco Jonathan May 27 '19 at 09:34
-
I think this is a permission related issue. If you are using the Linux operating system add sudo before the command and try again. – Rajesh Bhartia May 27 '19 at 09:36
2 Answers
1
See if the answers from this post helps: NPM modules won't install globally without sudo
I had a similar problem and I added "sudo" with the command as follows: sudo npm install -g aws-cdk

Catharina Oliveira
- 21
- 5
0
This is due to permission related issue, use sudo npm i -d react-native-cli

Vinil Prabhu
- 1,279
- 1
- 10
- 22