Thursday, July 20, 2017

another shitty angular install error

 user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/@angul


google top link
https://github.com/angular/angular-cli/issues/2161

npm uninstall -g angular-cli
npm install -g -f angular-cli


npm install -g -f angular-cli


stack: 'Error: EACCES: permission denied, mkdir \'/usr/local/lib/node_modules/.staging\'',

TypeError: Cannot read property 'write' of null
    at Zlib.callback (zlib.js:469:32)


https://docs.npmjs.com/getting-started/fixing-npm-permissions
npm config get prefix
/usr/local


 sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}



┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) /home/your user name /.config │
└────────────────────────────────────────────

https://askubuntu.com/questions/925545/npm-update-check-failed

No comments:

Post a Comment