问题描述:用命令(yo meanjs)生成mean.js的Application时,返回如下错误:

Unhandled rejection Error: Command failed: /bin/sh -c cd mean && npm install
npm WARN package.json ams@0.0.0 No repository field.
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! path /Users/couldhll/.npm/karma-chrome-launcher/0.2.0
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, mkdir '/Users/couldhll/.npm/karma-chrome-launcher/0.2.0'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, mkdir '/Users/couldhll/.npm/karma-chrome-launcher/0.2.0']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/couldhll/.npm/karma-chrome-launcher/0.2.0',
npm ERR! parent: 'ams' }
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/couldhll/Desktop/AMS/mean/npm-debug.log

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)



2.清空nom的缓存:npm cache clean