Friday, 22 May 2015

To resolve EACESS issue, when installing yo

Install an AngularJS generator

You can install Yeoman generators using the npm command.
Install prerequisites
Before installing Yeoman, you will need the following:
  • Node.js v0.10.x+
  • npm (which comes bundled with Node) v2.1.0+
  • git
You can check if you have Node and npm installed by typing:
 node --version && npm--version
You can check if you have Git installed by typing:
  • git --version
Install the Yeoman toolset
Once you’ve got Node installed, install the Yeoman toolset:
  • npm install --global yo bower grunt-cli
 Errors?
If you see permission or access errors, such as  EACCESS, do not use sudo as a work-around.Then
  • sudo chown -R $USER:$GROUP ~/.npm
  • npm cache clean  
then install yo
  •  npm install --global yo bower grunt-cli 

Confirm installation

  • yo --version && bower --version && grunt --version

Install an AngularJS generator

  • npm install --global generator-angular@0.11.1

No comments:

Post a Comment