This repository has been archived by the owner. It is now read-only.

typings install failing #463

Open
rampah opened this Issue Apr 22, 2016 · 59 comments

Comments

Projects
None yet
@rampah

rampah commented Apr 22, 2016

I am following "Angular 2" quickstart. When trying to do "npm install" it is failing at "typings install" step.

https://angular.io/docs/ts/latest/quickstart.html

I already have correct proxy and registry set up (https://registry.npmjs.org/).

Below is the error.

angular2-quickstart@1.0.0 postinstall c:\Temp\angular2-quickstart
typings install

typings ERR! message Unable to read typings for "es6-shim". You should check the
entry paths in "es6-shim.d.ts" are up to date
typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/D
efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim
/es6-shim.d.ts"
typings ERR! caused by connect ETIMEDOUT 23.235.46.133:443

typings ERR! cwd c:\Temp\angular2-quickstart
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\BLKDeveloper\nodejs\node.exe" "c:\Temp\angular2-qu
ickstart\node_modules\typings\dist\bin.js" "install"
typings ERR! node -v v4.4.3
typings ERR! typings -v 0.7.12

typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\BLKDeveloper\nodejs\node.exe" "C:\BLKDeveloper\nodejs\no
de_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.4.3
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 postinstall: typings install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-quickstart@1.0.0 postinstall script 'typings ins
tall'.
npm ERR! This is most likely a problem with the angular2-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! c:\Temp\angular2-quickstart\npm-debug.log

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Apr 23, 2016

Typings does not use the NPM proxy information.

@rampah

This comment has been minimized.

rampah commented Apr 27, 2016

Another thing is I can open the link "https://raw.githubusercontent.com/D
efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim
/es6-shim.d.ts" from browser.

However same via typings install times out.

typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/D
efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim
/es6-shim.d.ts"
typings ERR! caused by connect ETIMEDOUT 23.235.46.133:443

@Kamaraju333

This comment has been minimized.

Kamaraju333 commented Apr 29, 2016

typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jasmine/tags/2.2.0%2B20160412134438"
typings ERR! caused by unable to get local issuer certificate

typings ERR! cwd /Users/kprat1/projects/angular2-quickstart
typings ERR! system Darwin 15.3.0
typings ERR! command "/Users/kprat1/.nvm/versions/node/v4.2.2/bin/node" "/Users/kprat1/projects/angular2-quickstart/node_modules/.bin/typings" "install"
typings ERR! node -v v4.2.2
typings ERR! typings -v 0.8.1
typings ERR! code EUNAVAILABLE

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 1, 2016

@Kamaraju333 Are you using a local proxy? Please check that it's configured properly.

@rishabhsethi

This comment has been minimized.

rishabhsethi commented May 1, 2016

@blakeembrey I am also on corporate proxy. I've set up the proxy config variables in npm and set strict ssl to false.

Log:
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/es6-shim/tags/0.31.2%2B20160317120654"
typings ERR! caused by 140553023788864:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:

typings ERR! caused by

typings ERR! node -v v0.10.25
typings ERR! typings -v 0.8.1
typings ERR! code EUNAVAILABLE

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 3, 2016

@rishabhsethi As I mentioned three messages above my previous message, Typings does not using the NPM proxy config - you'd need to create a .typingsrc. Is that your issue?

@rishabhsethi

This comment has been minimized.

rishabhsethi commented May 3, 2016

@blakeembrey Hey. Sorry, Forgot to delete my comment. Yes, I found the solution. Thanks.

@MNBuyskih

This comment has been minimized.

MNBuyskih commented May 3, 2016

Some error, but I not use proxy

My command: $ typings install es6-shim
Typings response:

typings ERR! message Unable to find "es6-shim" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/es6-shim/versions/latest responded with 404, expected it to equal 200

typings ERR! cwd F:\www\
typings ERR! system Windows_NT 10.0.10586
typings ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Me\\AppData\\Roaming\\npm\\node_modules\\typings\\dist\\bin.js" "install" "es6-shim"
typings ERR! node -v v5.7.0
typings ERR! typings -v 0.8.1

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>

I try to open url https://api.typings.org/entries/npm/es6-shim/versions/latest in browser and got 404 status and message Not Found

Any idea?

@Kamaraju333

This comment has been minimized.

Kamaraju333 commented May 3, 2016

@blakeembrey I dont have any local proxy settings

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 3, 2016

@MNBuyskih That is not the same error, it's a 404. A 404 means "Not Found", which literally means there's no definition that you're trying to look up. You can install it using --ambient from DefinitelyTyped (as the message alludes to).

@Kamaraju333 Can you confirm by checking the proxy environment variables. I can't imagine any other case where you'd be accessing a local issuer certificate as your error seems to say.

@AkosLukacs

This comment has been minimized.

AkosLukacs commented May 5, 2016

Got the same error, but AFAIK, there is no proxy. I can access the URL using a browser, and npm, or bower works just fine.

What is really strange is that typings install just worked once after several failures. But only once, subsequent requests failed, and failed downloading different typings. Some console outputs:

PS E:\jw\*********\_FRONTEND_> typings install
typings ERR! message Unable to resolve "github:typed-typings/npm-lodash/global#e9c4bdf04a234c88c43a48ddcca116d7d0eaabb3" from "lodash"
typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/typed-typings/npm-lodash/e9c4bdf04a234c88c43a48ddcca116d7d0eaabb3/global/typ
ings.json"
typings ERR! caused by read ECONNRESET

typings ERR! cwd E:\jw\**********\_FRONTEND_
typings ERR! system Windows_NT 6.3.9600
typings ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\lukacs.akos\\AppData\\Roaming\\npm\\node_modules\\typings\\dist\\bin.js" "install"
typings ERR! node -v v4.4.3
typings ERR! typings -v 0.8.1

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>
PS E:\jw\********\_FRONTEND_> typings install

├── angular (ambient)
├── angular-animate (ambient)
├── angular-ui-bootstrap (ambient)
├── angular-ui-router (ambient)
├── jquery.blockui (ambient)
├── lodash@4.0.0 (ambient)
├── moment (ambient)
├── signalr (ambient)
├── toastr (ambient)
└── urijs (ambient)
@mjvezzani

This comment has been minimized.

mjvezzani commented May 6, 2016

Can confirm an identical issue as AkosLukacs. Out of 8 attempts to do a typings install, 1 resulted in a successful install. The other times threw errors regarding Jasmine and the ES6 Shim.

I've written a script that scaffolds out a basic application. I ran this several times with failures. This last time it ran successfully. I made no changes to files or configuration. Just kept running it until it succeeded.

@ankitsharma2401

This comment has been minimized.

ankitsharma2401 commented May 9, 2016

I am facing this issue when i type npm install

error

@Lars-Nielsen

This comment has been minimized.

Lars-Nielsen commented May 11, 2016

@ankitsharma2401

Are you behind a proxy?

If so please read #120

@nickroberts

This comment has been minimized.

nickroberts commented May 16, 2016

I am getting the same issue...I am definitely NOT behind a proxy.

I'm on node v6.1.0, npm v3.9.0.

I was able to install debug, but when trying to install node, es6-shim or jasmine I get a 404.

I'm just following the Angular 2 guide, as well.

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 16, 2016

404 is different to the issues in the thread. Most likely, you've just installed Typings 1.0 which is not compatible with existing docs.

@nickroberts

This comment has been minimized.

nickroberts commented May 16, 2016

Ah. I'm on 1.0.2. Guess I wasn't paying attention. Is there somewhere that has the updated docs?

@nickroberts

This comment has been minimized.

nickroberts commented May 16, 2016

typings install dt~node --global --save seems to have worked.

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 16, 2016

Everywhere should be up to date, start on the README. Feel free to open a PR if I can clarify something, helps when someone else other than the guy who built everything adds their perspective.

Yes, that's the command 👍

@shantanubhadoria

This comment has been minimized.

shantanubhadoria commented May 17, 2016

typings ERR! message Unable to find "es6-shim" ("npm") in the registry. Did you want to try searching   another source? Also, if you want contribute these typings, please help us:     https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/es6-shim/versions/latest responded with 404, expected it to equal 200

typings ERR! cwd /home/shantanu/meteor/project
typings ERR! system Linux 4.4.0-21-generic
typings ERR! command "/home/shantanu/.nvm/versions/node/v4.4.4/bin/node" "/home/shantanu/.nvm/versions/node/v4.4.4/bin/typings" "install" "es6-shim" "--ambient" "--save"
typings ERR! node -v v4.4.4
typings ERR! typings -v 1.0.3

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>

Facing a similar error here

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 17, 2016

@shantanubhadoria Read the error, read the README. I can't keep answering the same questions.

Edit: Sorry, I'm really frustrated. I just don't have all day to answer the same question. At least look at the comments directly above you which literally explains the same thing (replace node with es6-shim).

@0815fox

This comment has been minimized.

0815fox commented May 17, 2016

@cyberkatze : Did you really read this thread? The solution is written above: You updated to typings version 1.0.3, which introduces some breaking changes. See change log.

@brauliodiez

This comment has been minimized.

brauliodiez commented May 18, 2016

Just a quick "cheat sheet" (sample install es6-shim)

To search for a package:

typings search --name es6-shim

Check here the "source" column (in this case dt)

To install the package

typings install dt~es6-shim --global --save

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 18, 2016

@brauliodiez Both windows and bash are the same syntax. The bang syntax was from 0.x, as mentioned in the README/release notes.

@brauliodiez

This comment has been minimized.

brauliodiez commented May 18, 2016

Ouch ! Sorry about that, just corrected the comment, hope it helps to other developers, thanks for you patience.

@WuglyakBolgoink

This comment has been minimized.

WuglyakBolgoink commented May 19, 2016

Sorry, I was confused with this string: "dt~" :) so now, all work perfekt! thank you!

@ng-julien

This comment has been minimized.

ng-julien commented May 20, 2016

I try to install typings but i have an error :
typingserror
Need help.

@unional

This comment has been minimized.

Member

unional commented May 20, 2016

Likely unrelated, but are you running as admin?

@ng-julien

This comment has been minimized.

ng-julien commented May 20, 2016

Yes.
if it helps
npm-debug.txt

@morwin10

This comment has been minimized.

morwin10 commented May 31, 2016

I get errors when i type: typings install dt~es6-shim --global --save

typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/es6-shim/versions/latest"
typings ERR! caused by unable to verify the first certificate

typings ERR! cwd C:\Users\morwin\Documents\angular2-cademy
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\morwin\AppData\Roaming\npm\node_modules\typings\dist\bin.js" "install" "dt~es6-shim" "--global" "--save"
typings ERR! node -v v6.2.0
typings ERR! typings -v 1.0.4
typings ERR! code EUNAVAILABLE

typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues

@unional

This comment has been minimized.

@unional

This comment has been minimized.

Member

unional commented May 31, 2016

This issue is loaded with various different scenarios.

Created a separate issue #564

@morwin10

This comment has been minimized.

morwin10 commented May 31, 2016

@unional Yes i tried it with .typingsrc :

 {
 "proxy": "http://127.0.0.1:8888/", // http://46.105.148.146:3128  - or real proxy from incloak.com/proxy-list/ or remove this line
 "rejectUnauthorized": false
 }

But it doesn't work
PS.
if i connect to the internet from my cellphone by " WI-FI hotspot " it works ..

@HoosierWrangler

This comment has been minimized.

HoosierWrangler commented May 31, 2016

Something changed, this worked a week ago, now my project is hosed with the same error:

typings ERR! node -v v4.4.4
typings ERR! typings -v 1.0.4

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented May 31, 2016

@HoosierWrangler And what is the error? There's a dozen different ones mentioned in this thread.

@pietrangelo

This comment has been minimized.

pietrangelo commented Jul 5, 2016

For everyone having problems installing es6-shim module following the angular2 tutorial, this is the correct string to enter:

typings install es6-shim --global --source dt --save

@RichOren

This comment has been minimized.

RichOren commented Jul 12, 2016

@blakeembrey - Your Frustrated????? Update you documentation.... and you wont have to answer all these questions.

THIS - typings install es6-shim --global --source dt --save

OR

THIS - typings install dt~es6-shim --global --save

Which one buddy. The top one worked for me after about an hour of searching the internet.

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Jul 12, 2016

@RichOren I don't understand what you are responding to. The documentation is up to date. Are you running into an issue?

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Jul 12, 2016

Since you edited your rant: both work, what's the problem?

@RichOren

This comment has been minimized.

RichOren commented Jul 12, 2016

@ Well your stuff isn't working as documented. typings install dt~angular-ui-router --global --save - does not work. This does - typings install angular-ui-router --global --source dt --save

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Jul 12, 2016

Yes, it works perfectly fine. Check the version of your Typings please.

@RichOren

This comment has been minimized.

RichOren commented Jul 12, 2016

I am on 1.3.1 is there something passed that version?

@unional

This comment has been minimized.

Member

unional commented Jul 12, 2016

I can confirm that it works:

> typings install dt~angular-ui-router --global --save
typings INFO reference Stripped reference "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/b38cd68fe2dacaea0bb4efd6a3c638ceeae4fb25/angularjs/angular.d.ts" during installation from "angular-ui-router" (main)
angular-ui-router
└── (No dependencies)
@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Jul 12, 2016

Can you provide more information? It definitely works perfectly fine and your problem has never been reported before. I copied these commands from you.

image

image

image

@RichOren

This comment has been minimized.

RichOren commented Jul 12, 2016

Its working now - Maybe the terminal needed to be re-opened after updating Typings - cause that is the only thing I can think of why it wouldn't have worked. Thanks for your help guys.

@sw16463

This comment has been minimized.

sw16463 commented Jul 27, 2016

@rampah I was having the same issue as you. Can you provide the solution you had. @blakeembrey What do you mean by create a .typingsrc.

@unional

This comment has been minimized.

Member

unional commented Jul 27, 2016

create a .typingsrc file under your project or your user folder, any where that https://www.npmjs.com/package/rc can discover the file.

See https://github.com/typings/typings/blob/master/docs/faq.md#configuration

@milad1367

This comment has been minimized.

milad1367 commented Jul 29, 2016

i not use the npm proxy!
I already I changed the devDependencies to a lower version and problem solving about npm instaling.
But then I was faced with another error.
untitled

@milad1367

This comment has been minimized.

milad1367 commented Jul 30, 2016

My problem was solved.I have used the Internet adsl.but this time use the simcard internet.

@Dreampie

This comment has been minimized.

Dreampie commented Aug 31, 2016

typings "search" "es6-shim"

Viewing 1 of 1

NAME     SOURCE HOMEPAGE                              DESCRIPTION VERSIONS UPDATED                 
es6-shim dt     https://github.com/paulmillr/es6-shim             1        2016-06-02T14:15:04.000Z

 typings "install" "dt~es6-shim"

typings ERR! message Unable to find "dt~es6-shim" for "npm" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/dt~es6-shim/versions/latest responded with 404, expected it to equal 200

what's wrong?

@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Aug 31, 2016

@Dreampie You're using a version < 1.0.

@Dreampie

This comment has been minimized.

Dreampie commented Aug 31, 2016

typings --version
2.14.6

this work...

typings install --ambient --save registry:dt/es6-shim

> typings "install" "registry:dt/es6-shim"

es6-shim
└── (No dependencies)
@blakeembrey

This comment has been minimized.

Member

blakeembrey commented Aug 31, 2016

That is not the typings version, I'm not sure what that is. You can also check on NPM, the latest version is 1.3. The version you are using is 0.x.

@taohannan

This comment has been minimized.

taohannan commented Oct 17, 2016

sorry paste wrongly previously, i did try everything suggested above and this is my error 👍

{ "name": "angular-quickstart", "version": "1.0.0", "scripts": { "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", "lite": "lite-server", "postinstall": "typings install", "tsc": "tsc", "tsc:w": "tsc -w", "typings": "typings" }, "licenses": [ { "type": "MIT", "url": "https://github.com/angular/angular.io/blob/master/LICENSE" } ], "dependencies": { "@angular/common": "~2.1.0", "@angular/compiler": "~2.1.0", "@angular/core": "~2.1.0", "@angular/forms": "~2.1.0", "@angular/http": "~2.1.0", "@angular/platform-browser": "~2.1.0", "@angular/platform-browser-dynamic": "~2.1.0", "@angular/router": "~3.1.0", "@angular/upgrade": "~2.1.0", "angular-in-memory-web-api": "~0.1.5", "bootstrap": "^3.3.7", "core-js": "^2.4.1", "reflect-metadata": "^0.1.8", "rxjs": "5.0.0-beta.12", "systemjs": "0.19.39", "zone.js": "^0.6.25" }, "devDependencies": { "concurrently": "^3.0.0", "lite-server": "^2.2.2", "typescript": "^2.0.3", "typings":"^1.4.0" } }

angular-quickstart@1.0.0 postinstall C:\Users\00094201\workspace\angular-quickstart
typings install

typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jasmine/tags/2.2.0%2B20160621224255"
typings ERR! caused by getaddrinfo EAI_AGAIN api.typings.org:443

typings ERR! cwd C:\Users\00094201\workspace\angular-quickstart
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\00094201\workspace\angular-quickstart\node_modules\typings\dist\bin.js" "install"
typings ERR! node -v v6.8.1
typings ERR! typings -v 1.4.0
typings ERR! code EUNAVAILABLE

typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN angular-quickstart@1.0.0 No description
npm WARN angular-quickstart@1.0.0 No repository field.
npm WARN angular-quickstart@1.0.0 No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\00094201\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.8.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart@1.0.0 postinstall: typings install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart@1.0.0 postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\00094201\workspace\angular-quickstart\npm-debug.log

@taohannan

This comment has been minimized.

taohannan commented Oct 17, 2016

sorry can ignore my post,
i just remove my proxy setting and can install it, my issue solved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.