-2
我試圖使用安裝通過終端自耕農:無法安裝自耕農
npm install -g yo
我不斷收到此錯誤信息(後下載GIT):
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/yo/cli.js'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/yo/cli.js']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/yo/cli.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! cwd /Users/WayneEnterprise
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! path /usr/local/lib/node_modules/yo/cli.js
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/yo/cli.js'
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/yo/cli.js'
npm ERR! error rolling back { [Error: EACCES, unlink '/usr/local/lib/node_modules/yo/cli.js']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/yo/cli.js' }
npm ERR! not ok code 0
我該如何解決這個問題問題?