Cannot install dependencies

Issue #34 new
Syed Hussain created an issue

npm install seems to fetch the dependencies of the project but it fails every single time.

I tried installing the dependencies but everytime i get the following error,

Note: I am using an open internet/network which does not have any proxies and no I havent set any proxies in npm either.

upnp@upnp:~/Desktop/webrtc-codelab-c75c8e837a12/complete$ npm install 
npm WARN package.json codelab@0.0.1 No README data
npm ERR! Linux 4.2.0-27-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.1
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     /home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete/npm-

Please see the debug logs below,

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install' ]
2 info using npm@2.15.1
3 info using node@v4.4.3
4 verbose readDependencies loading dependencies from /home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete/package.json
5 warn package.json codelab@0.0.1 No README data
6 verbose install where, deps [ '/home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete',
6 verbose install   [ 'node-static', 'socket.io', 'express' ] ]
7 verbose install where, peers [ '/home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete',
7 verbose install   [] ]
8 verbose installManyTop reading for lifecycle /home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete/package.json
9 info preinstall codelab@0.0.1
10 verbose readDependencies loading dependencies from /home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete/package.json
11 silly cache add args [ 'node-static@~0.7.1', null ]
12 verbose cache add spec node-static@~0.7.1
13 silly cache add args [ 'socket.io@~0.9.16', null ]
14 verbose cache add spec socket.io@~0.9.16
15 silly cache add parsed spec Result {
15 silly cache add   raw: 'node-static@~0.7.1',
15 silly cache add   scope: null,
15 silly cache add   name: 'node-static',
15 silly cache add   rawSpec: '~0.7.1',
15 silly cache add   spec: '>=0.7.1 <0.8.0',
15 silly cache add   type: 'range' }
16 silly addNamed node-static@>=0.7.1 <0.8.0
17 verbose addNamed ">=0.7.1 <0.8.0" is a valid semver range for node-static
18 silly addNameRange { name: 'node-static', range: '>=0.7.1 <0.8.0', hasData: false }
19 silly mapToRegistry name node-static
20 silly mapToRegistry using default registry
21 silly mapToRegistry registry http://registry.npmjs.org/
22 silly mapToRegistry data Result {
22 silly mapToRegistry   raw: 'node-static',
22 silly mapToRegistry   scope: null,
22 silly mapToRegistry   name: 'node-static',
22 silly mapToRegistry   rawSpec: '',
22 silly mapToRegistry   spec: 'latest',
22 silly mapToRegistry   type: 'tag' }
23 silly mapToRegistry uri http://registry.npmjs.org/node-static
24 verbose addNameRange registry:http://registry.npmjs.org/node-static not in flight; fetching
25 silly cache add parsed spec Result {
25 silly cache add   raw: 'socket.io@~0.9.16',
25 silly cache add   scope: null,
25 silly cache add   name: 'socket.io',
25 silly cache add   rawSpec: '~0.9.16',
25 silly cache add   spec: '>=0.9.16 <0.10.0',
25 silly cache add   type: 'range' }
26 silly addNamed socket.io@>=0.9.16 <0.10.0
27 verbose addNamed ">=0.9.16 <0.10.0" is a valid semver range for socket.io
28 silly addNameRange { name: 'socket.io', range: '>=0.9.16 <0.10.0', hasData: false }
29 silly mapToRegistry name socket.io
30 silly mapToRegistry using default registry
31 silly mapToRegistry registry http://registry.npmjs.org/
32 silly mapToRegistry data Result {
32 silly mapToRegistry   raw: 'socket.io',
32 silly mapToRegistry   scope: null,
32 silly mapToRegistry   name: 'socket.io',
32 silly mapToRegistry   rawSpec: '',
32 silly mapToRegistry   spec: 'latest',
32 silly mapToRegistry   type: 'tag' }
33 silly mapToRegistry uri http://registry.npmjs.org/socket.io
34 verbose addNameRange registry:http://registry.npmjs.org/socket.io not in flight; fetching
35 silly cache add args [ 'express@~3.4.0', null ]
36 verbose cache add spec express@~3.4.0
37 silly cache add parsed spec Result {
37 silly cache add   raw: 'express@~3.4.0',
37 silly cache add   scope: null,
37 silly cache add   name: 'express',
37 silly cache add   rawSpec: '~3.4.0',
37 silly cache add   spec: '>=3.4.0 <3.5.0',
37 silly cache add   type: 'range' }
38 silly addNamed express@>=3.4.0 <3.5.0
39 verbose addNamed ">=3.4.0 <3.5.0" is a valid semver range for express
40 silly addNameRange { name: 'express', range: '>=3.4.0 <3.5.0', hasData: false }
41 silly mapToRegistry name express
42 silly mapToRegistry using default registry
43 silly mapToRegistry registry http://registry.npmjs.org/
44 silly mapToRegistry data Result {
44 silly mapToRegistry   raw: 'express',
44 silly mapToRegistry   scope: null,
44 silly mapToRegistry   name: 'express',
44 silly mapToRegistry   rawSpec: '',
44 silly mapToRegistry   spec: 'latest',
44 silly mapToRegistry   type: 'tag' }
45 silly mapToRegistry uri http://registry.npmjs.org/express
46 verbose addNameRange registry:http://registry.npmjs.org/express not in flight; fetching
47 verbose request uri http://registry.npmjs.org/node-static
48 verbose request no auth needed
49 info attempt registry request try #1 at 4:36:53 PM
50 verbose request id 381f18e64c7a576e
51 http request GET http://registry.npmjs.org/node-static
52 verbose request uri http://registry.npmjs.org/socket.io
53 verbose request no auth needed
54 info attempt registry request try #1 at 4:36:53 PM
55 http request GET http://registry.npmjs.org/socket.io
56 verbose request uri http://registry.npmjs.org/express
57 verbose request no auth needed
58 info attempt registry request try #1 at 4:36:53 PM
59 http request GET http://registry.npmjs.org/express
60 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
61 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
62 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
63 info attempt registry request try #2 at 4:37:24 PM
64 http request GET http://registry.npmjs.org/node-static
65 info attempt registry request try #2 at 4:37:24 PM
66 http request GET http://registry.npmjs.org/socket.io
67 info attempt registry request try #2 at 4:37:24 PM
68 http request GET http://registry.npmjs.org/express
69 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
70 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
71 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
72 info attempt registry request try #3 at 4:38:44 PM
73 http request GET http://registry.npmjs.org/node-static
74 info attempt registry request try #3 at 4:38:44 PM
75 http request GET http://registry.npmjs.org/socket.io
76 info attempt registry request try #3 at 4:38:44 PM
77 http request GET http://registry.npmjs.org/express
78 verbose stack Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
78 verbose stack     at errnoException (dns.js:27:10)
78 verbose stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)
79 verbose cwd /home/upnp/Desktop/webrtc-codelab-c75c8e837a12/complete
80 error Linux 4.2.0-27-generic
81 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
82 error node v4.4.3
83 error npm  v2.15.1
84 error code ENOTFOUND
85 error errno ENOTFOUND
86 error syscall getaddrinfo
87 error network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
87 error network This is most likely not a problem with npm itself
87 error network and is related to network connectivity.
87 error network In most cases you are behind a proxy or have bad network settings.
87 error network
87 error network If you are behind a proxy, please make sure that the
87 error network 'proxy' config is set properly.  See: 'npm help config'
88 verbose exit [ 1, true ]

Can anyone please help me understand why isnt this working. If I am doing something wrong?

Environment : Ubuntu 14.0.4 LTS Installed package of NodeJS: nodejs_4.4.3-1nodesource1~trusty1_amd64.deb npm version: 2.15.1 nodejs version: v4.4.3

Thanks,

Syed Ahmed Hussain.

Comments (0)

  1. Log in to comment