I am trying to install node express by running npm install express -g but I get this error in the console window. I have set the
HTTP_PROXY - http://:#my-proxy:8080
And...
no_proxy - localhost, 127.0.0.1
Error
C:\>npm install express -g
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm ERR! Error: getaddrinfo ENOTFOUND
npm ERR! at errnoException (dns.js:37:11)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:124:16)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-g"
npm ERR! cwd C:\
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.11
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm-debug.log
npm ERR! not ok code 0
Related
I want to install less module on Centos 6.6 by npm, but I come across some problems.
executed command:
[dinghao#localhost ~]$ sudo npm install -g less
error log:
npm http GET https://registry.npm.taobao.org/less
npm http GET https://registry.npm.taobao.org/less
npm http GET https://registry.npm.taobao.org/less
npm ERR! Error: failed to fetch from registry: less
npm ERR! at RegClient.<anonymous> (/usr/lib/node_modules/npm-registry-client/lib/get.js:140:18)
npm ERR! at cb (/usr/lib/node_modules/npm-registry-client/lib/request.js:32:9)
npm ERR! at RegClient.<anonymous> (/usr/lib/node_modules/npm-registry-client/lib/request.js:122:10)
npm ERR! at cb (/usr/lib/node_modules/npm-registry-client/lib/request.js:132:9)
npm ERR! at RegClient.<anonymous> (/usr/lib/node_modules/npm-registry-client/lib/request.js:225:20)
npm ERR! at Request._callback (/usr/lib/node_modules/npm-registry-client/lib/request.js:204:20)
npm ERR! at self.callback (/usr/lib/node_modules/request/index.js:148:22)
npm ERR! at Request.emit (events.js:117:20)
npm ERR! at ClientRequest.self.clientErrorHandler (/usr/lib/node_modules/request/index.js:257:10)
npm ERR! at ClientRequest.emit (events.js:95:17)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 2.6.32-504.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "less"
npm ERR! cwd /home/dinghao
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/dinghao/npm-debug.log
npm ERR! not ok code 0
How to resolve this?
I am getting the following errors while installing cordova CLI using npm tool from cmd.
npm install -f -g cordova
npm WARN using --force I sure hope you know what you are doing.
npm ERR! Error: connect EAFNOSUPPORT
npm ERR! at errnoException (net.js:904:11)
npm ERR! at connect (net.js:766:19)
npm ERR! at net.js:845:9
npm ERR! at asyncCallback (dns.js:68:16)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:121:9)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-f" "-g" "cordova"
npm ERR! cwd C:\Documents and Settings\AmarJyotiG
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! syscall connect
npm ERR! code EAFNOSUPPORT
npm ERR! errno EAFNOSUPPORT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Documents and Settings\AmarJyotiG\npm-debug.log
npm ERR! not ok code 0
I am relatively very new to using cordova. Any help !
I am getting the following error when installing grunt using npm nodejs. Can someone tell what it is trying have problems with and how I can fix it. We do have firewall so is there another way to download grunt and install? I a newbie and just getting my feet wet.
Your environment has been set up for using Node.js 0.10.26 (x64) and npm.
C:\Users\testuser>npm install -g grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm ERR! Error: 12812:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:openssl\ssl\s23_clnt.c:766:
npm ERR!
npm ERR! at SlabBuffer.use (tls.js:232:18)
npm ERR! at CleartextStream.read [as _read] (tls.js:452:29)
npm ERR! at CleartextStream.Readable.read (_stream_readable.js:320:10)
npm ERR! at EncryptedStream.write [as _write] (tls.js:366:25)
npm ERR! at doWrite (_stream_writable.js:226:10)
npm ERR! at writeOrBuffer (_stream_writable.js:216:5)
npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:183:11)
npm ERR! at write (_stream_readable.js:583:24)
npm ERR! at flow (_stream_readable.js:592:7)
npm ERR! at Socket.pipeOnReadable (_stream_readable.js:624:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR! cwd C:\Users\testuser
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\testuser\npm-debug.log
npm ERR! not ok code 0
thank you
Nick
I'm running Windows 7, and I'm trying to install Phonegap on my system.
I've installed NodeJS as requested, but whenever I try to install via
c:> npm -g install phonegap
I get this:
C:\>npm install -g phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap
npm ERR! Error: connect EACCES
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892: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! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! syscall connect
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! stack Error: connect EACCES
npm ERR! stack at errnoException (net.js:901:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm-debug.log
npm ERR! not ok code 0
I'm running command prompt as an adminstrator, so I know that's not the problem. Any ideas, and failing this does anyone know where I can unzip the .zip file to install PhoneGap manually?
I'm trying to install Forever for my node.js server but getting following error when npm install -g forever, I have node v0.8.5 and npm v1.1.46
npm ERR! fetch failed https://github.com/indexzero/read/tarball/refactor-option
l-streams
npm http GET https://github.com/indexzero/read/tarball/refactor-optional-stream
npm ERR! fetch failed https://github.com/indexzero/read/tarball/refactor-option
l-streams
npm http GET https://github.com/indexzero/read/tarball/refactor-optional-stream
npm ERR! fetch failed https://github.com/indexzero/read/tarball/refactor-option
l-streams
npm ERR! Error: connect ETIMEDOUT
npm ERR! at errnoException (net.js:782:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:773:19)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Fil
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "forever"
npm ERR! cwd C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo
npm ERR! node -v v0.8.5
npm ERR! npm -v 1.1.46
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\npm-debug.log
npm ERR! not ok code 0
What could be the problem.
Thanks,in advance
This means Github wasn't responding to the http request in time that was specified by npm.