Setup the system environment
$ lsb_release -a 2> /dev/null | grep Desc
Description: Ubuntu 14.04.1 LTS
$ sudo apt-get install build-essential
$ sudo add-apt-repository ppa:chris-lea/node.js && sudo apt-get update
$ sudo apt-get install nodejs && sudo npm update -g npm
$ sudo npm install -g yo generator-angular && cd /tmp && mkdir b && cd $_
Generate (yeoman)
/tmp/b $ yo angular
[?] Would you like to use Sass (with Compass)? No
[?] Would you like to include Bootstrap? No
[?] Which modules would you like to include?
⬢ angular-animate.js
⬢ angular-cookies.js
⬡ angular-resource.js
⬡ angular-route.js
⬢ angular-sanitize.js
⬢ angular-touch.js
Errors
npm-debug.log
Is there some trick—short of chown
ing /usr/lib/node_modules
—that will stop these errors from occuring?
Copyright Notice:Content Author:「A T」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25236042/stop-eacces-errors-with-npm-node-on-ubuntu