Please provide us with the following information:
- OS? Linux Mint 18 Sarahcl.
- diahron@Aspire-7736 ~ $ ng --version
/usr/local/lib/node_modules/angular-cli/node_modules/configstore/index.js:54
throw err;
^
Error: EACCES: permission denied, open '/home/diahron/.config/configstore/ember-cli.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Object.create.all.get (/usr/local/lib/node_modules/angular-cli/node_modules/configstore/index.js:35:26)
at Object.Configstore (/usr/local/lib/node_modules/angular-cli/node_modules/configstore/index.js:28:44)
at clientId (/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/lib/cli/index.js:22:21)
at module.exports (/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/lib/cli/index.js:65:19)
at module.exports (/usr/local/lib/node_modules/angular-cli/lib/cli/index.js:102:10)
at /usr/local/lib/node_modules/angular-cli/bin/ng:31:5
at /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:46:14
node --version v6.2.1
Thanks! We'll be in touch soon.
Check the permissions on /home/diahron/.config/configstore/ember-cli.json and the directories above it. Change the owner back to yourself as needed. Looks like you must have used sudo earlier which could have made some of those dirs/files owned by root.
I think @Splaktar is correct, this looks like a permissions issue. There is more information about it here https://docs.npmjs.com/getting-started/fixing-npm-permissions
I have a similar error after upgrading from the previous beta (which worked fine)
node --version v5.11.1
ng new ang-cli-test2
...
create typings.json
Successfully initialized git.
â ™ Installing packages for tooling via npmsh: typings: command not found
File: sh
@angular/[email protected] postinstall: `typings install`
spawn ENOENT
Error: @angular/[email protected] postinstall: `typings install`
spawn ENOENT
at ChildProcess.<anonymous> (/Users/paul/.nvm/versions/node/v5.11.1/lib/node_modules/angular-cli/node_modules/npm/lib/utils/spawn.js:17:16)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
the failed installation is missing the 'typings' folder
I installed 'typings'
npm install typings --global
and I'm working again.
@stocksp that issue is https://github.com/angular/angular-cli/issues/1092. Fixed on master, waiting for a release.
Closed as obsolete following #1455.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
I have a similar error after upgrading from the previous beta (which worked fine)
node --version v5.11.1
the failed installation is missing the 'typings' folder
I installed 'typings'
npm install typings --globaland I'm working again.