亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

bower install bootstrap 出錯,求幫忙,謝謝。

bower install bootstrap 出錯,求幫忙,謝謝。

PanameraTurboS 2016-11-01 21:20:36
XiaoQiang:imooc XieTongXue$ bower install bootstrap/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:54 throw err; ^Error: EACCES: permission denied, open '/Users/XieTongXue/.config/configstore/bower-github.json'You don't have access to this file.? ? at Error (native)? ? at Object.fs.openSync (fs.js:640:18)? ? at Object.fs.readFileSync (fs.js:508:33)? ? at Object.create.all.get (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:35:26)? ? at Object.Configstore (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:28:44)? ? at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:19:23)? ? at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12)? ? at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32)? ? at Module._compile (module.js:541:32)? ? at Object.Module._extensions..js (module.js:550:10)
查看完整描述

1 回答

?
PanameraTurboS

TA貢獻4條經驗 獲得超10個贊

百度上說這樣改就可以

sudo bower install --allow-root
sudo bower install <package>

親測不可用,最后在github找到解決辦法,親測可用。

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

查看完整回答
4 反對 回復 2016-11-01
  • 1 回答
  • 0 關注
  • 2602 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號