Skip to content

typings: not found #1126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
diahron opened this issue Jun 17, 2016 · 6 comments
Closed

typings: not found #1126

diahron opened this issue Jun 17, 2016 · 6 comments

Comments

@diahron
Copy link

diahron commented Jun 17, 2016

Please provide us with the following information:

  1. OS? Linux Mint 18 Sarahcl.
  1. 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

  1. I have been trying to install angular-cli for about a day or two.

  2. ⠙ Installing packages for tooling via npmsh: 1: typings: not found
    unzip error /tmp/npm-4970-96090951/registry.npmjs.org/babel-core/-/babel-core-5.8.38.tgz
    error reading /tmp/npm-4970-96090951/registry.npmjs.org/q/-/q-1.4.1.tgz

  3. I tried to install ng via npm. I think that just compounded problem.


    Thanks! We'll be in touch soon.

@Splaktar
Copy link
Contributor

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.

@filipesilva
Copy link
Contributor

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

@stocksp
Copy link

stocksp commented Jun 18, 2016

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.

@filipesilva
Copy link
Contributor

@stocksp that issue is #1092. Fixed on master, waiting for a release.

@filipesilva
Copy link
Contributor

filipesilva commented Jul 27, 2016

Closed as obsolete following #1455.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants