我尝试构建项目或运行模拟器,它一直在说这个错误。 /usr/lib/node_modules/cordova/node_modules/insight/node_modules/configstore/index.js:53 扔错了; ^
Error: EACCES: permission denied, open
'/home/jayzdevera/.config/configstore/insight-cordova.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.readFileSync (fs.js:509:33)
at Object.get
(/usr/lib/node_modules/cordova/node_modules/insight/node_modules/configstore/index.js:34:26)
at Object.Configstore
(/usr/lib/node_modules/cordova/node_modules/insight/node_modules/configstore/index.js:27:44)
at new Insight
(/usr/lib/node_modules/cordova/node_modules/insight/lib/index.js:38:34)
at Object.<anonymous>
(/usr/lib/node_modules/cordova/src/telemetry.js:37:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
我是Ionic的新手2.顺便说一下,我使用的是Ubuntu 16.04 OS
答案 0 :(得分:1)
这是与许可相关的问题。尝试执行以下命令来解决问题:
sudo chown -R $ USER:$ GROUP~ / .npm
sudo chown -R $ USER:$ GROUP~ / .config
有关详细信息,请查看此link。