I cannot get the Yeoman setup working for the life of me.
When I attempt to run the following:
Aidans-MacBook-Pro:~ aidan$ npm install --global yo bower grunt-cli
However I end up getting the following (and when I try to check the versions, only Yeoman seems to be installed):
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN checkPermissions Missing write access to /Users/aidan/.npm-packages/lib/node_modules/bower
- minimatch@3.0.0 node_modules/yo/node_modules/glob/node_modules/minimatch
- lru-cache@2.7.3 node_modules/yo/node_modules/minimatch/node_modules/lru-cache
- sigmund@1.0.1 node_modules/yo/node_modules/sigmund
/Users/aidan/.npm-packages/lib
├── bower@1.7.7
├── grunt-cli@0.1.13
└─┬ yo@1.7.0
└─┬ yeoman-doctor@2.1.0
└─┬ twig@0.8.9
└── minimatch@3.0.0
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/Users/aidan/.node/bin/npm" "install" "--global" "yo" "bower" "grunt-cli"
npm ERR! node v4.4.0
npm ERR! npm v3.8.1
npm ERR! path /Users/aidan/.npm-packages/lib/node_modules/bower
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/aidan/.npm-packages/lib/node_modules/bower'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/Users/aidan/.npm-packages/lib/node_modules/bower']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/aidan/.npm-packages/lib/node_modules/bower' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/aidan/npm-debug.log
Aidans-MacBook-Pro:~ aidan$ yo --version
1.7.0
Aidans-MacBook-Pro:~ aidan$ bower --version
-bash: bower: command not found
Aidans-MacBook-Pro:~ aidan$ grunt --version
-bash: grunt: command not found
Aidans-MacBook-Pro:~ aidan$
I’ve already tried this guide, but have had no luck: https://gist.github.com/DanHerbert/9520689
Using Mac OS X El Capitan 10.11.3
Could somebody assist me in figuring out why I’m unable to get this working, and how to fix it? It would be much appreciated.