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

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)
npm config get prefix

 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 │

No comments:

Post a Comment