用yoeman 生成webapp 然后出现了权限错误
sudo yo webapp … npm ERR! Error: EACCES, mkdir ‘/Users/apple/.npm/each-async/0.1.3’ npm ERR! { [Error: EACCES, mkdir ‘/Users/apple/.npm/each-async/0.1.3’] npm ERR! errno: 3, npm ERR! code: 'EACCES’, npm ERR! path: '/Users/apple/.npm/each-async/0.1.3’, npm ERR! parent: ‘grunt-svgmin’ } npm ERR! npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.0.0 npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” “install” npm ERR! cwd /Users/apple/test/webtest/test npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! path /Users/apple/.npm/each-async/0.1.3 npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir ‘/Users/apple/.npm/each-async/0.1.3’ npm ERR! not ok code 0