为了账号安全,请及时绑定邮箱和手机立即绑定

WJdeMacBook-Air:gallery-by-react WJ$ sudo yo react-webpack gallery-by-react!! 如何处理

WJdeMacBook-Air:gallery-by-react WJ$ sudo yo react-webpack gallery-by-react

/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53

throw err;

^


Error: EACCES: permission denied, open '/Users/WJ/.config/configstore/insight-yo.json'

You don't have access to this file.


    at Error (native)

    at Object.fs.openSync (fs.js:642:18)

    at Object.fs.readFileSync (fs.js:510:33)

    at Object.get (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)

    at Object.Configstore.get (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:13)

    at Insight.get (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)

    at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:194:47)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)



正在回答

1 回答

是不是node版本引起的呢

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

举报

0/150
提交
取消
React实战--打造画廊应用(上)
  • 参与学习       57309    人
  • 解答问题       273    个

颠覆式前端UI开发框架 React,打造图片画廊实践案讲解

进入课程

WJdeMacBook-Air:gallery-by-react WJ$ sudo yo react-webpack gallery-by-react!! 如何处理

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信