Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

typings ERR! caused by connect ETIMEDOUT 104.24.112.177:443 #560

Open
khansha03 opened this issue May 27, 2016 · 14 comments
Open

typings ERR! caused by connect ETIMEDOUT 104.24.112.177:443 #560

khansha03 opened this issue May 27, 2016 · 14 comments
Labels

Comments

@khansha03
Copy link

typings ERR! code EUNAVAILABLE

Hello I have done everthing about proxy settings that are discussed in other threads. Including putting in below in .typingsrc file under project folder. Nothing is working and I get this error no matter what I do. Can you please help.
rejectUnauthorized=false
strictSSL=false

I get below error while setting up a new project using cli.

C:\angular-projects>ng new khan_project
(node:9456) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please up
date it to a more recent version.
installing ng2
create .clang-format
create .editorconfig
create src\app\khan-project.component.css
create src\app\khan-project.component.html
create src\app\khan-project.component.spec.ts
create src\app\khan-project.component.ts
create src\app\environment.ts
create src\app\index.ts
create src\app\shared\index.ts
create src\favicon.ico
create src\index.html
create src\main.ts
create src\system-config.ts
create src\tsconfig.json
create src\typings.d.ts
create angular-cli-build.js
create angular-cli.json
create config\environment.dev.ts
create config\environment.js
create config\environment.prod.ts
create config\karma-test-shim.js
create config\karma.conf.js
create config\protractor.conf.js
create e2e\app.e2e.ts
create e2e\app.po.ts
create e2e\tsconfig.json
create e2e\typings.d.ts
create .gitignore
create package.json
create public.npmignore
create tslint.json
create typings.json

  • Installing packages for tooling via npmtypings ERR! message Unable to connect to "https://api.typings.org/entries/dt/j
    asmine/tags/2.2.0%2B20160412134438"
    typings ERR! caused by connect ETIMEDOUT 104.24.112.177:443

typings ERR! cwd C:\angular-projects\khan_project
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\programs\nodejs\node.exe" "C:\angular-projects\khan_project\node_modules\typings\dist
bin.js" "install"
typings ERR! node -v v6.2.0
typings ERR! typings -v 0.8.1
typings ERR! code EUNAVAILABLE

typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues
khan-project@0.0.0 postinstall: typings install
Exit status 1
Error: khan-project@0.0.0 postinstall: typings install
Exit status 1
at EventEmitter. (C:\Users\10017960\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\lib\uti
ls\lifecycle.js:217:16)
at emitTwo (events.js:106:13)
at EventEmitter.emit (events.js:191:7)
at ChildProcess. (C:\Users\10017960\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\lib\uti
ls\spawn.js:24:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

Node version 6.2.0
npm 3.8.9

Thanks in advance

@unional
Copy link
Member

unional commented May 27, 2016

@khansha03
Copy link
Author

Yes when I enter this in URL I see below
{"version":"2.2.0","location":"github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#5c182b9af717f73146399c2485f70f1e2ac0ff2b","description":null,"tag":"2.2.0+20160412134438","compiler":null,"updated":"2016-04-12T13:44:38.000Z","deprecated":"2016-05-05T16:14:46.000Z"}

@unional
Copy link
Member

unional commented May 31, 2016

Then likely proxy issue. Can you search and see if other solution here works for you?

@Xiahl1990
Copy link

Xiahl1990 commented Jun 2, 2016

I have encountered this problem.

typings install

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

typings ERR! system Windows_NT 6.1.7601
typings ERR! command "D:\nodejs\node.exe"
"\ng2_02\node_modules\typings\dist\bin.js" "install"
typings ERR! node -v v4.4.5
typings ERR! typings -v 0.8.1
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 failed optional dependency /karma/chokidar/fsevents:
npm WARN network connect ETIMEDOUT 103.245.222.162:443
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.4.5
npm ERR! npm v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! ng2-02@0.0.0 postinstall: typings install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng2-02@0.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 ng2-02 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 ng2-02
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-02
npm ERR! There is likely additional logging output above.

@Xiahl1990
Copy link

typings -- install dt~jasmine
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jasmine/versions/latest"
typings ERR! caused by connect ETIMEDOUT 104.24.112.177:443

typings ERR! cwd C:\Users\xwx313913\ng2_02
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "D:\nodejs\node.exe" "D:\nodejs\node_global\node_modules\typings\dist\bin.js" "--" "install" "dt~jasmine"
typings ERR! node -v v4.4.5
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

@oshri551
Copy link

oshri551 commented Jun 7, 2016

Hi, the issue is probably because you are behind proxy.
There is a workaround to solve this issue:

Add new file named .typingsrc to the project root directory
Add this content:
proxy="http://proxy.company.com:8080"
rejectUnauthorized=false

Make sure you replace the proxy setting with your company proxy server

@absulation
Copy link

@oshri551 that it work for me thank you !!

@venkim
Copy link

venkim commented Jul 14, 2016

That worked for me. Thank you @oshri551

@fbyrne
Copy link

fbyrne commented Aug 30, 2016

Worked for me also.
Please note that my proxy was correctly set in npm.

Going through the angular 2 quickstart and this cropped up.

@dasariramacharan
Copy link

dasariramacharan commented Sep 10, 2016

In windows you can use the below command to create the file with no name

echo anytext > .typingsrc

They you may modify the file with code given by @oshri551 in this post

Hope this helps if you are unable to create the typingssrc file

@dasariramacharan
Copy link

dasariramacharan commented Sep 10, 2016

If the above solution does not work try specifying authentication settings in typingssrc file as specified at

#605 (comment)

@basanirakesh
Copy link

That worked for me. Thank you @oshri551

@manyu-lnmiit
Copy link

oshri551
Thanks man it worked!

@zwwtj2014
Copy link

Thanks @oshri551
That worked for me!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests