$ npm install -g express-generator@4
/usr/local/lib
└─┬ express-generator@4.13.4
├─┬ commander@2.7.1
│ └── graceful-readlink@1.0.1
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
└── sorted-object@2.0.0
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! path /usr/local/lib/node_modules/.staging/accepts-384fbfdc
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rmdir
npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/.staging/accepts-384fbfdc'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/.staging/accepts-384fbfdc'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rmdir',
npm ERR! path: '/usr/local/lib/node_modules/.staging/accepts-384fbfdc' }
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/dengdf/npm-debug.log
Pan-Mac:~ Pan$ sudo npm install -g express-generator@4
Password:
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "express-generator@4"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request: