上周我开始修补 Ember 框架。然而,我真的开始喜欢它了,当我尝试使用它运行任何 Ember-CLI 命令时,ember <command>
会向我抛出以下错误:
/usr/lib/node_modules/ember-cli/node_modules/configstore/index.js:46
throw err;
^
Error: EACCES, permission denied '/home/mattias/.config/configstore/ember-cli.json'
You don't have access to this file.
at Object.fs.openSync (fs.js:439:18)
at Object.fs.readFileSync (fs.js:290:15)
at Object.create.all.get (/usr/lib/node_modules/ember-cli/node_modules/configstore/index.js:27:26)
at Object.Configstore (/usr/lib/node_modules/ember-cli/node_modules/configstore/index.js:20:44)
at clientId (/usr/lib/node_modules/ember-cli/lib/cli/index.js:22:21)
at module.exports (/usr/lib/node_modules/ember-cli/lib/cli/index.js:64:19)
at /usr/lib/node_modules/ember-cli/bin/ember:26:3
at /usr/lib/node_modules/ember-cli/node_modules/resolve/lib/async.js:46:14
at process (/usr/lib/node_modules/ember-cli/node_modules/resolve/lib/async.js:173:43)
at ondir (/usr/lib/node_modules/ember-cli/node_modules/resolve/lib/async.js:188:17)
起初我认为它与 Ember 或 npm 有关,所以我尝试重新安装 npm、NodeJS 和 Ember,但是每当我想使用 Ember-CLI 时它总是返回错误。
感谢您的建议。