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

為了賬號安全,請及時綁定郵箱和手機立即綁定

npm instal -g yo之后,yo -v throw err

ryan-Mac:~ ryan$ yo -v

/usr/local/lib/node_modules/yo/node_modules/configstore/node_modules/mkdirp/index.js:89

? ? ? ? ? ? ? ? ? ? throw err0;

? ? ? ? ? ? ? ? ? ? ? ? ? ^

Error: EACCES, permission denied '/Users/ryan/.config/configstore'

? ? at Error (native)

? ? at Object.fs.mkdirSync (fs.js:747:18)

? ? at Function.sync (/usr/local/lib/node_modules/yo/node_modules/configstore/node_modules/mkdirp/index.js:70:13)

? ? at Object.create.all.get (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:41:13)

? ? at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:27:44)

? ? at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:36:34)

? ? at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:117:15)

? ? at Module._compile (module.js:460:26)

? ? at Object.Module._extensions..js (module.js:478:10)

? ? at Module.load (module.js:355:32)

幫助解決一下吧。

正在回答

1 回答

之前看了有人說

$sudo chown -R $(whoami) /User/ryan/.config?

好像也不對,

我的是

$sudo chown -R $(whoami) /User/ryan/.config?

chown: /User/ryan/.config: No such file or directory

.config文件沒有,怎么辦

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

npm instal -g yo之后,yo -v throw err

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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