2015-05-18 81 views
0

我剛剛更新到優勝美地10.10.3並試圖安裝鮑爾和Grunt,都安裝時給我錯誤。我沒有使用sudo命令安裝命令,但只要檢查版本,這是返回消息就是前立交橋此錯誤:-bash: bower: command not found搜索後沒有一個echo $PATH了會導致如下:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin優勝美地10.10.3安裝鮑爾和Grunt錯誤

有沒有解決辦法?我一直在尋找網絡,試圖找到我能找到的所有東西,但還沒有找到解決辦法。在此先感謝您的幫助。

鮑爾錯誤:

npm ERR! Darwin 14.3.0 
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower" 
npm ERR! node v0.12.2 
npm ERR! npm v2.7.4 
npm ERR! path /Users/albertoc/.node/bin/bower 
npm ERR! code EACCES 
npm ERR! errno -13 

npm ERR! Error: EACCES, unlink '/Users/albertoc/.node/bin/bower' 
npm ERR!  at Error (native) 
npm ERR! { [Error: EACCES, unlink '/Users/albertoc/.node/bin/bower'] 
npm ERR! errno: -13, 
npm ERR! code: 'EACCES', 
npm ERR! path: '/Users/albertoc/.node/bin/bower' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 
npm ERR! error rolling back Error: EACCES, unlink '/Users/albertoc/.node/bin/bower' 
npm ERR! error rolling back  at Error (native) 
npm ERR! error rolling back { [Error: EACCES, unlink '/Users/albertoc/.node/bin/bower'] 
npm ERR! error rolling back errno: -13, 
npm ERR! error rolling back code: 'EACCES', 
npm ERR! error rolling back path: '/Users/albertoc/.node/bin/bower' } 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/albertoc/npm-debug.log 

咕嚕錯誤:

npm ERR! Darwin 14.3.0 
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli" 
npm ERR! node v0.12.2 
npm ERR! npm v2.7.4 
npm ERR! path /Users/albertoc/.node/bin/grunt 
npm ERR! code EACCES 
npm ERR! errno -13 

npm ERR! Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt' 
npm ERR!  at Error (native) 
npm ERR! { [Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt'] 
npm ERR! errno: -13, 
npm ERR! code: 'EACCES', 
npm ERR! path: '/Users/albertoc/.node/bin/grunt' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 
npm ERR! error rolling back Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt' 
npm ERR! error rolling back  at Error (native) 
npm ERR! error rolling back { [Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt'] 
npm ERR! error rolling back errno: -13, 
npm ERR! error rolling back code: 'EACCES', 
npm ERR! error rolling back path: '/Users/albertoc/.node/bin/grunt' } 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/albertoc/npm-debug.log 

回答