yo react-webpack 命令报权限的错怎么办
yo react-webpack 命令报权限的错怎么办,已经是root权限了
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at Object.create.all.get (/root/.nvm/versions/node/v5.3.0/lib/node_modules/.yo_npminstall/configstore/1.4.0/configstore/index.js:34:26)
at Object.Configstore (/root/.nvm/versions/node/v5.3.0/lib/node_modules/.yo_npminstall/configstore/1.4.0/configstore/index.js:27:44)
at new Insight (/root/.nvm/versions/node/v5.3.0/lib/node_modules/.yo_npminstall/insight/0.7.0/insight/lib/index.js:37:34)
at Object.<anonymous> (/root/.nvm/versions/node/v5.3.0/lib/node_modules/.yo_npminstall/yo/1.8.3/yo/lib/cli.js:172:11)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)