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