I'm trying to install express-generator globally but keep running into this error
error message
I'm using my android phone as a hotspot to connect to the internet and my internet is fine.
I'm not using a proxy to connect to the internet
I recently installed node.js so I believe everything is up to date
Content of my npm-debug.log file:
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-generator',
1 verbose cli '-g' ]
2 info using npm#3.10.10
3 info using node#v6.10.3
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData express-generator
8 silly fetchNamedPackageData express-generator
9 silly mapToRegistry name express-generator
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry http://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'express-generator',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'express-generator',
12 silly mapToRegistry name: 'express-generator',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri http://registry.npmjs.org/express-generator
14 verbose request uri http://registry.npmjs.org/express-generator
15 verbose request no auth needed
16 info attempt registry request try #1 at 6:11:37 PM
17 verbose request id ba90169705422372
18 http request GET http://registry.npmjs.org/express-generator
19 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND proxy proxy:00
20 info attempt registry request try #2 at 6:11:49 PM
21 http request GET http://registry.npmjs.org/express-generator
22 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND proxy proxy:00
23 info attempt registry request try #3 at 6:12:52 PM
24 http request GET http://registry.npmjs.org/express-generator
25 silly fetchPackageMetaData Error: getaddrinfo ENOTFOUND proxy proxy:00
25 silly fetchPackageMetaData at errnoException (dns.js:28:10)
25 silly fetchPackageMetaData at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
25 silly fetchPackageMetaData error for express-generator { Error: getaddrinfo ENOTFOUND proxy proxy:00
25 silly fetchPackageMetaData at errnoException (dns.js:28:10)
25 silly fetchPackageMetaData at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
25 silly fetchPackageMetaData code: 'ENOTFOUND',
25 silly fetchPackageMetaData errno: 'ENOTFOUND',
25 silly fetchPackageMetaData syscall: 'getaddrinfo',
25 silly fetchPackageMetaData hostname: 'proxy',
25 silly fetchPackageMetaData host: 'proxy',
25 silly fetchPackageMetaData port: '00' }
26 silly rollbackFailedOptional Starting
27 silly rollbackFailedOptional Finishing
28 silly runTopLevelLifecycles Finishing
29 silly install printInstalled
30 verbose stack Error: getaddrinfo ENOTFOUND proxy proxy:00
30 verbose stack at errnoException (dns.js:28:10)
30 verbose stack at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
31 verbose cwd C:\Users\user\Desktop\backup\Documents\Web Dev\ServerSide
32 error Windows_NT 6.1.7601
33 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express-generator" "-g"
34 error node v6.10.3
35 error npm v3.10.10
36 error code ENOTFOUND
37 error errno ENOTFOUND
38 error syscall getaddrinfo
39 error network getaddrinfo ENOTFOUND proxy proxy:00
40 error network This is most likely not a problem with npm itself
40 error network and is related to network connectivity.
40 error network In most cases you are behind a proxy or have bad network settings.
40 error network
40 error network If you are behind a proxy, please make sure that the
40 error network 'proxy' config is set properly. See: 'npm help config'
41 verbose exit [ 1, true ]
Try removing proxy configuration and run
npm config delete proxy
Related
I have successfully installed nodejs in C:\Program File. Nodejs and npm are also working fine by checking version of both.
Description and version info of softwares/hardwares I'm using as below
OS:- Windows 7 Enterprise SP1, 64-bit
RAM:- 4GB
Nodejs:- version 7.4.0
npm:- version 4.0.5
java:- version 1.8.0_121
Now while I'm trying to install express from cmd using npm install --save express command,following error is coming.
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 '--save',
1 verbose cli 'express' ]
2 info using npm#4.0.5
3 info using node#v7.4.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData express
8 silly fetchNamedPackageData express
9 silly mapToRegistry name express
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'express',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'express',
12 silly mapToRegistry name: 'express',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/express
14 verbose request uri https://registry.npmjs.org/express
15 verbose request no auth needed
16 info attempt registry request try #1 at 7:15:42 PM
17 verbose request id 90eb0dc94f842d2f
18 http request GET https://registry.npmjs.org/express
19 info retry will retry, error on last attempt: Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
20 info attempt registry request try #2 at 7:15:52 PM
21 http request GET https://registry.npmjs.org/express
22 info retry will retry, error on last attempt: Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
23 info attempt registry request try #3 at 7:16:52 PM
24 http request GET https://registry.npmjs.org/express
25 silly fetchPackageMetaData Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
25 silly fetchPackageMetaData at Object.exports._errnoException (util.js:1022:11)
25 silly fetchPackageMetaData at errnoException (dns.js:33:15)
25 silly fetchPackageMetaData at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
25 silly fetchPackageMetaData error for express { Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
25 silly fetchPackageMetaData at Object.exports._errnoException (util.js:1022:11)
25 silly fetchPackageMetaData at errnoException (dns.js:33:15)
25 silly fetchPackageMetaData at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
25 silly fetchPackageMetaData code: 'EAI_AGAIN',
25 silly fetchPackageMetaData errno: 'EAI_AGAIN',
25 silly fetchPackageMetaData syscall: 'getaddrinfo',
25 silly fetchPackageMetaData hostname: 'registry.npmjs.org',
25 silly fetchPackageMetaData host: 'registry.npmjs.org',
25 silly fetchPackageMetaData port: 443 }
26 silly rollbackFailedOptional Starting
27 silly rollbackFailedOptional Finishing
28 silly runTopLevelLifecycles Finishing
29 silly install printInstalled
30 verbose stack Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
30 verbose stack at Object.exports._errnoException (util.js:1022:11)
30 verbose stack at errnoException (dns.js:33:15)
30 verbose stack at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
31 verbose cwd D:\ExpressJS Apps\ExpressDemo
32 error Windows_NT 6.1.7601
33 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "express"
34 error node v7.4.0
35 error npm v4.0.5
36 error code EAI_AGAIN
37 error errno EAI_AGAIN
38 error syscall getaddrinfo
39 error getaddrinfo EAI_AGAIN registry.npmjs.org:443
40 error If you need help, you may report this error at:
40 error <https://github.com/npm/npm/issues>
41 verbose exit [ 1, true ]
I already searched it in stack overflow and also get a solution of it but for the linux operating system. So please don't mark this question duplicate as there is no solution for windows OS for this issue
EDIT:-
When I'm trying to run npm install command following error coming
D:\ExpressJS Apps\ExpressDemo>npm install
npm WARN express-demo#1.0.0 No repository field.
After searching lots regarding this issue on internet for last 2 days and consulting with my organization's IT expert team and my project mate, I finally resolved this issue.
First of all I'm developing app using node.js and express at my organization that means I'm working behind the corporate firewall. That's why I'm getting above issues mention in question section. So, I just follow the below step to resolve it
Open your command prompt and hit the following three command at your cmd.
npm set config registry "http://registry.npmjs.org/"
npm set config proxy "http://username:password#host:port/"
npm set config strict-ssl false
After entering above 3 command in command prompt , a file, .npmrc, will be created under C:\user\your_user_name directory.
Now I'm able to download and install all the necessary files including express.js from command line.
For some reason npm will only install modules globally to my Windows machine. Whenever I try installing without the -g tag, npm will hang on the initial install loading bar for a minute or two before spitting out an error. I just ran a test and tried npm install webpack, here is the resulting error log:
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 'webpack' ]
2 info using npm#3.10.8
3 info using node#v6.9.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData webpack
8 silly fetchNamedPackageData webpack
9 silly mapToRegistry name webpack
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry http://localhost:15443/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'webpack',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'webpack',
12 silly mapToRegistry name: 'webpack',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri http://localhost:15443/webpack
14 verbose request uri http://localhost:15443/webpack
15 verbose request no auth needed
16 info attempt registry request try #1 at 3:14:31 PM
17 verbose request id 2088e718f68168b2
18 http request GET http://localhost:15443/webpack
19 info retry will retry, error on last attempt: Error: connect ECONNREFUSED 127.0.0.1:15443
20 info attempt registry request try #2 at 3:14:42 PM
21 http request GET http://localhost:15443/webpack
22 info retry will retry, error on last attempt: Error: connect ECONNREFUSED 127.0.0.1:15443
23 info attempt registry request try #3 at 3:15:43 PM
24 http request GET http://localhost:15443/webpack
25 silly fetchPackageMetaData Error: connect ECONNREFUSED 127.0.0.1:15443
25 silly fetchPackageMetaData at Object.exports._errnoException (util.js:1026:11)
25 silly fetchPackageMetaData at exports._exceptionWithHostPort (util.js:1049:20)
25 silly fetchPackageMetaData at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
25 silly fetchPackageMetaData error for webpack { Error: connect ECONNREFUSED 127.0.0.1:15443
25 silly fetchPackageMetaData at Object.exports._errnoException (util.js:1026:11)
25 silly fetchPackageMetaData at exports._exceptionWithHostPort (util.js:1049:20)
25 silly fetchPackageMetaData at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
25 silly fetchPackageMetaData code: 'ECONNREFUSED',
25 silly fetchPackageMetaData errno: 'ECONNREFUSED',
25 silly fetchPackageMetaData syscall: 'connect',
25 silly fetchPackageMetaData address: '127.0.0.1',
25 silly fetchPackageMetaData port: 15443 }
26 silly rollbackFailedOptional Starting
27 silly rollbackFailedOptional Finishing
28 silly runTopLevelLifecycles Finishing
29 silly install printInstalled
30 verbose stack Error: connect ECONNREFUSED 127.0.0.1:15443
30 verbose stack at Object.exports._errnoException (util.js:1026:11)
30 verbose stack at exports._exceptionWithHostPort (util.js:1049:20)
30 verbose stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
31 verbose cwd C:\Users\MMM\Desktop\node\npmtest
32 error Windows_NT 10.0.14393
33 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "webpack"
34 error node v6.9.1
35 error npm v3.10.8
36 error code ECONNREFUSED
37 error errno ECONNREFUSED
38 error syscall connect
39 error Error: connect ECONNREFUSED 127.0.0.1:15443
39 error at Object.exports._errnoException (util.js:1026:11)
39 error at exports._exceptionWithHostPort (util.js:1049:20)
39 error at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
39 error { Error: connect ECONNREFUSED 127.0.0.1:15443
39 error at Object.exports._errnoException (util.js:1026:11)
39 error at exports._exceptionWithHostPort (util.js:1049:20)
39 error at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
39 error code: 'ECONNREFUSED',
39 error errno: 'ECONNREFUSED',
39 error syscall: 'connect',
39 error address: '127.0.0.1',
39 error port: 15443 }
40 error If you are behind a proxy, please make sure that the
40 error 'proxy' config is set properly. See: 'npm help config'
41 verbose exit [ 1, true ]
Here are the things I've done to try and fix it so far:
Removing proxy by running npm config set proxy null - I use a VPN for work but it is currently disconnected, I'm using a standard Comcast home internet connection
Made sure to run the command line with admin privileges
Changed the npm directory to C:\Users\MMM using npm config set prefix C:\Users\MMM (it was originally set to something like C:\Users\Appdata\Roaming\npm) - npm config get prefix currently returns the updated directory, and modules installed globally are correctly installed to C:\Users\MMM\node_modules.
Updated node and npm to the latest versions, node -v returns v6.9.1 and npm -v returns 3.10.8.
I've tried npm install, npm install %module%, npm install %module% --save, npm install %module% --save-dev - npm install %module% -g is the only thing that works.
I'm just trying to package the PDFJS library for use on a website I'm working on - I only have very basic experience with node, npm, webpack, and the command line. Any help would be greatly appreciated. Thanks!
I recently installed node on my windows 8 computer and tested it and it seems to work fine. But when I try to install it I get this error
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "connect"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect
npm ERR! Error: connect EACCES
npm ERR! at exports._errnoException (util.js:746:11)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
npm ERR! { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'c
onnect' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
these are the contents of the npm-debug.log file from before I tried installing running cmd as administrator
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 'connect' ]
2 info using npm#2.15.1
3 info using node#v4.4.3
4 verbose install initial load of C:\Users\owner\Desktop\Node.js\package.json
5 verbose readDependencies loading dependencies from C:\Users\owner\Desktop\Node.js\package.json
6 silly cache add args [ 'connect', null ]
7 verbose cache add spec connect
8 silly cache add parsed spec Result {
8 silly cache add raw: 'connect',
8 silly cache add scope: null,
8 silly cache add name: 'connect',
8 silly cache add rawSpec: '',
8 silly cache add spec: 'latest',
8 silly cache add type: 'tag' }
9 silly addNamed connect#latest
10 verbose addNamed "latest" is being treated as a dist-tag for connect
11 info addNameTag [ 'connect', 'latest' ]
12 silly mapToRegistry name connect
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data Result {
15 silly mapToRegistry raw: 'connect',
15 silly mapToRegistry scope: null,
15 silly mapToRegistry name: 'connect',
15 silly mapToRegistry rawSpec: '',
15 silly mapToRegistry spec: 'latest',
15 silly mapToRegistry type: 'tag' }
16 silly mapToRegistry uri https://registry.npmjs.org/connect
17 verbose addNameTag registry:https://registry.npmjs.org/connect not in flight; fetching
18 verbose request uri https://registry.npmjs.org/connect
19 verbose request no auth needed
20 info attempt registry request try #1 at 11:26:28 PM
21 verbose request id d04b099ed5c5d169
22 http request GET https://registry.npmjs.org/connect
23 info retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443
24 info attempt registry request try #2 at 11:26:38 PM
25 http request GET https://registry.npmjs.org/connect
26 info retry will retry, error on last attempt: Error: connect EACCES 23.235.39.162:443
27 info attempt registry request try #3 at 11:27:38 PM
28 http request GET https://registry.npmjs.org/connect
29 verbose stack Error: connect EACCES 23.235.46.162:443
29 verbose stack at Object.exports._errnoException (util.js:870:11)
29 verbose stack at exports._exceptionWithHostPort (util.js:893:20)
29 verbose stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14)
30 verbose cwd C:\Users\owner\Desktop\Node.js
31 error Windows_NT 6.2.9200
32 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "connect"
33 error node v4.4.3
34 error npm v2.15.1
35 error code EACCES
36 error errno EACCES
37 error syscall connect
38 error Error: connect EACCES 23.235.46.162:443 38 error at Object.exports._errnoException (util.js:870:11)
38 error at exports._exceptionWithHostPort (util.js:893:20)
38 error at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14)
38 error { [Error: connect EACCES 23.235.46.162:443]
38 error code: 'EACCES',
38 error errno: 'EACCES',
38 error syscall: 'connect',
38 error address: '23.235.46.162',
38 error port: 443 }
39 error Please try running this command again as root/Administrator.
40 verbose exit [ 1, true ]
I have already tried running the command "npm install connect" as Administrator and got the same thing. Can anyone help?
The error occurs because you probably installed Node with root permissions but you're not executing npm with the same permissions. Permissions you used when installing Node will be required when doing things like writing in your npm directory (npm link, npm install -g, etc.).
The recommended way to fix this is by installing nvm-windows and using this to manage your Node installations. This prevents you from having to hack around the permissions on your machine.
I have never used nodejs before. I just found out about the npm. If you wanted to install a package using npm, will you have to download the file first? If so, where do you put the file? would you place it in the same folder as the npm?
I tried to install faye with npm and this is what I got on the npm-debug.log:
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 'faye' ]
2 info using npm#2.7.4
3 info using node#v0.12.2
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 silly cache add args [ 'faye', null ]
6 verbose cache add spec faye
7 silly cache add parsed spec { raw: 'faye',
7 silly cache add scope: null,
7 silly cache add name: 'faye',
7 silly cache add rawSpec: '',
7 silly cache add spec: '*',
7 silly cache add type: 'range' }
8 verbose addNamed faye#*
9 silly addNamed semver.valid null
10 silly addNamed semver.validRange *
11 silly addNameRange { name: 'faye', range: '*', hasData: false }
12 silly mapToRegistry name faye
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry uri https://registry.npmjs.org/faye
16 verbose addNameRange registry:https://registry.npmjs.org/faye not in flight; fetching
17 verbose request uri https://registry.npmjs.org/faye
18 verbose request no auth needed
19 info attempt registry request try #1 at 7:19:45 PM
20 verbose request id e2cc452cb2788a4b
21 http request GET https://registry.npmjs.org/faye
22 info retry will retry, error on last attempt: Error: connect EACCES
23 info attempt registry request try #2 at 7:19:55 PM
24 http request GET https://registry.npmjs.org/faye
25 info retry will retry, error on last attempt: Error: connect EACCES
26 info attempt registry request try #3 at 7:20:55 PM
27 http request GET https://registry.npmjs.org/faye
28 verbose stack Error: connect EACCES
28 verbose stack at exports._errnoException (util.js:746:11)
28 verbose stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)
29 verbose cwd C:\tito3
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" "faye"
32 error node v0.12.2
33 error npm v2.7.4
34 error code EACCES
35 error errno EACCES
36 error syscall connect
37 error Error: connect EACCES
37 error at exports._errnoException (util.js:746:11)
37 error at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)
37 error { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'connect' }
38 error Please try running this command again as root/Administrator.
39 verbose exit [ 1, true ]
Npm will download the relevant files for the module for you.
There are 2 modes of installing node modules using npm, either locally or globally. Locally (the default) means the modules are downloaded to a node_modules directory at the location you ran the command, so you would normally run this at the root of your app project. Globally (-g option) means it is downloaded to a location so it can be used by anything on your system I.e grunt_cli
The program files directory on windows is protected so you will need to run the command as an administrator, or run npm install from a non protect path such as c:\myapp
You might want to look at a package.json file, this is a file that allows you to list all your modules that you need for your app. Running just npm install in a location that contains a package.json will cause npm to read the file and download all your dependent modules for you.
I am trying to install cordova using Mac Mini Terminal.
The command I am using is as follows
sudo npm install -g cordova
I even tried without Sudo. I am connected to internet using Wifi + Lan too.
I tried disabling Wifi and connect and other way round.
I am not on proxy server. I connect to internet using a Wifi Connection which is through WIFI router. I am based in India.
I get following error.( Here is error log. )
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', '-g', 'cordova' ]
2 info using npm#1.4.28
3 info using node#v0.10.32
4 verbose cache add [ 'cordova', null ]
5 verbose cache add name=undefined spec="cordova" args=["cordova",null]
6 verbose parsed url { protocol: null,
6 verbose parsed url slashes: null,
6 verbose parsed url auth: null,
6 verbose parsed url host: null,
6 verbose parsed url port: null,
6 verbose parsed url hostname: null,
6 verbose parsed url hash: null,
6 verbose parsed url search: null,
6 verbose parsed url query: null,
6 verbose parsed url pathname: 'cordova',
6 verbose parsed url path: 'cordova',
6 verbose parsed url href: 'cordova' }
7 silly lockFile a98f2055-cordova cordova
8 verbose lock cordova /Users/vilas_den/.npm/a98f2055-cordova.lock
9 silly lockFile a98f2055-cordova cordova 10 silly lockFile a98f2055-cordova cordova
11 verbose addNamed [ 'cordova', '' ]
12 verbose addNamed [ null, '*' ]
13 silly lockFile de8d9fad-cordova cordova#
14 verbose lock cordova# /Users/vilas_den/.npm/de8d9fad-cordova.lock
15 silly addNameRange { name: 'cordova', range: '*', hasData: false }
16 verbose request where is /cordova
17 verbose request registry https://registry.npmjs.org/
18 verbose request id b73a5f8f40fd1d7c
19 verbose url raw /cordova
20 verbose url resolving [ 'https://registry.npmjs.org/', './cordova' ]
21 verbose url resolved https://registry.npmjs.org/cordova
22 verbose request where is https://registry.npmjs.org/cordova
23 info trying registry request attempt 1 at 16:31:28
24 http GET https://registry.npmjs.org/cordova
25 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND
26 info trying registry request attempt 2 at 16:31:39
27 http GET https://registry.npmjs.org/cordova
28 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND
29 info trying registry request attempt 3 at 16:32:39 30 http GET https://registry.npmjs.org/cordova
31 silly lockFile de8d9fad-cordova cordova#
32 silly lockFile de8d9fad-cordova cordova#
33 error network getaddrinfo ENOTFOUND
33 error network This is most likely not a problem with npm itself
33 error network and is related to network connectivity.
33 error network In most cases you are behind a proxy or have bad network settings.
33 error network
33 error network If you are behind a proxy, please make sure that the
33 error network 'proxy' config is set properly. See: 'npm help config'
34 error System Darwin 13.3.0
35 error command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
36 error cwd /Users/vilas_den
37 error node -v v0.10.32
38 error npm -v 1.4.28
39 error syscall getaddrinfo
40 error code ENOTFOUND
41 error errno ENOTFOUND
42 verbose exit [ 1, true ]
So please let me know.