[英]EACCESS Error when doing npm install -g bower
當我運行帶有-g(全局)安裝的命令時,出現EACCESS錯誤。 我讀,我應該使用“須藤喬敦- R的堆棧溢出的答案之一whoami
〜/ .npm”運行本地/根管理員聯系,但它沒有幫助
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/.node/lib/node_modules/bower/.editorconfig'
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/Documents/tutorials/bookingappdemo
npm ERR! node -v v0.10.29
npm ERR! npm -v 2.0.0-alpha-5
npm ERR! path /Users/.node/lib/node_modules/bower/.editorconfig
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/Users/.node/lib/node_modules/bower/.editorconfig'
npm ERR! Additional logging details can be found in:
npm ERR! not ok code 0
如果您是管理員,建議您以root用戶身份運行命令: sudo npm install -g bower
I used --unsafe-perm with install e.g
sudo npm install -g learnyounode --unsafe-perm
這幫助我安裝了沒有權限的錯誤,希望很快能解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.