Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am unable to install express js after installing node js version 0.12.7,
Please look into the below mentioned error logs-

<0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'express',
1 verbose cli '--save' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose install initial load of C:\inetpub\wwwroot\Test\package.json
5 verbose readDependencies loading dependencies from C:\inetpub\wwwroot\RTest\package.json
6 silly cache add args [ 'express@~4.0.0', null ]
7 verbose cache add spec express@~4.0.0
8 silly cache add parsed spec { raw: 'express@~4.0.0',
8 silly cache add scope: null,
8 silly cache add name: 'express',
8 silly cache add rawSpec: '~4.0.0',
8 silly cache add spec: '>=4.0.0 <4.1.0',
8 silly cache add type: 'range' }
9 silly addNamed express@>=4.0.0 <4.1.0
10 verbose addNamed ">=4.0.0 <4.1.0" is a valid semver range for express
11 silly addNameRange { name: 'express', range: '>=4.0.0 <4.1.0', hasData: false }
12 silly mapToRegistry name express
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry http://registry.npms.org/
15 silly mapToRegistry uri http://registry.npms.org/express
16 verbose addNameRange registry:http://registry.npms.org/express not in flight; fetching
17 verbose request uri http://registry.npms.org/express
18 verbose request no auth needed
19 info attempt registry request try #1 at 12:33:54 PM
20 verbose request id 3ad9f6b042727f66
21 http request GET http://registry.npms.org/express
22 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
23 info attempt registry request try #2 at 12:34:04 PM
24 http request GET http://registry.npms.org/express
25 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
26 info attempt registry request try #3 at 12:35:04 PM
27 http request GET http://registry.npms.org/express
28 verbose stack Error: getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
28 verbose stack at errnoException (dns.js:44:10)
28 verbose stack at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)
29 verbose cwd C:\inetpub\wwwroot\Test
30 error Windows_NT 6.1.7601
31 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
32 error node v0.12.7
33 error npm v2.11.3
34 error code ENOTFOUND
35 error errno ENOTFOUND
36 error syscall getaddrinfo
37 error network getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
37 error network This is most likely not a problem with npm itself
37 error network and is related to network connectivity.
37 error network In most cases you are behind a proxy or have bad network settings.
37 error network
37 error network If you are behind a proxy, please make sure that the
37 error network 'proxy' config is set properly. See: 'npm help config'
38 verbose exit [ 1, true ]>
Posted

1 solution

Finally i got the issue resolved with the help from network guy
strict-ssl=false
proxy = http://ip address of proxy:8088
https-proxy = https://ip address of proxy:8088
registry = http://registry.npmjs.org/
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900