checkPermissions Missing write access to /usr/local/lib/node_modules/npm
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules/npm
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'
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm'
npm ERR! stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/npm\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
Asked
Active
Viewed 182 times
-4

R. Richards
- 24,603
- 10
- 64
- 64
-
Must run your command as user and install npm + angular cli globally – andrea06590 Feb 13 '18 at 16:32
-
run `sudo npm...` – Daniel A. White Feb 13 '18 at 16:32
-
Possible duplicate of [NPM modules won't install globally without sudo](https://stackoverflow.com/questions/19352976/npm-modules-wont-install-globally-without-sudo) – Vitalii Chmovzh Feb 13 '18 at 16:47