angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Missing write access

Open gosaitarun opened this issue 8 years ago • 2 comments

npm WARN checkPermissions 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: '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! npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:

How I grant this permission ? Thanks

gosaitarun avatar Jul 13 '18 13:07 gosaitarun

Run the install with sudo or have node installed in a directory your user has access to. This is more a unix / npm and has nothing to do with angular-cli. You should close this and head over to stackoverflow with this question if my first sentence still leaves you stumped.

ajspera avatar Jul 13 '18 20:07 ajspera

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.