我试图在我的终端安装angular-fullstack使用yeoman,angular,mongodb和express。不幸的是,命令“yo angular-fullstack [app-name]”失败了:
npm ERR! Error: EACCES, mkdir '/Users/sss/.npm/coffee-script/1.7.1'
npm ERR! { [Error: EACCES, mkdir '/Users/sss/.npm/coffee-script/1.7.1']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/sss/.npm/coffee-script/1.7.1',
npm ERR! parent: 'karma-coffee-preprocessor' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/sss/Documents/yeoman-test/angular-fullstack/proj
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path /Users/sss/.npm/coffee-script/1.7.1
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/sss/.npm/coffee-script/1.7.1'
npm ERR! not ok code 0
我试图重新运行命令在“yo”的开头添加“sudo”。但我遇到了同样的错误。有谁知道为什么这不起作用?