nodejs npm package install failed - node.js

I am new to nodejs, and I have just installed it in my Windows 7 PC. The next thing I try to do is to install express.js package via npm npm install express --save, and I got following error messages
npm ERR! fetch failed http://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.6.tgz
npm ERR! Error: 403 Forbidden
npm ERR! at WriteStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\fetch.js:58:12)
npm ERR! at WriteStream.emit (events.js:117:20)
npm ERR! at evalmachine.<anonymous>:1610:14
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:102:5
npm ERR! at Object.oncomplete (evalmachine.<anonymous>:108:15)
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.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
npm ERR! cwd C:\temp\NodeJS_POC
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! not ok code 0
Anybody knows why?

It turns to be our proxy server actually blocks http://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.6.tgz

Related

node js build real time chat error

I am creating a real time chat app using nodejs , but on giving the command npm i simple-nodejs-chat i am getting following :
D:\chat>npm i simple-nodejs-chat
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "i" "simple-nodejs-chat"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! code ENOSELF
npm ERR! Refusing to install simple-nodejs-chat as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\chat\npm-debug.log
kindly help .

Error "shasum check failed" when try to install firebase-tools

I'm getting this error when try to install firebase-tools:
PS D:\Projects\Uni\firebase-functions-hello-world> npm install -g firebase-tools
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "-g" "firebase-tools"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! shasum check failed for C:\Users\AdMin\AppData\Local\Temp\npm-8448-fdc26aac\registry.npmjs.org
\jju\-\jju-1.3.0.tgz
npm ERR! Expected: dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa
npm ERR! Actual: 2a552ad636b1e23979c677ab9f360cf1ac578f89
npm ERR! From: https://registry.npmjs.org/jju/-/jju-1.3.0.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\Projects\Uni\firebase-functions-hello-world\npm-debug.log
PS D:\Projects\Uni\firebase-functions-hello-world>
i also posted this issue on github which is https://github.com/firebase/firebase-tools/issues/271
Run the command again logged in as administrator.

Error Installing Cordova on Node Js

npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v4.3.2
npm ERR! npm v2.14.12
npm ERR! shasum check failed for C:\Users\ATULQU~1\AppData\Local\Temp\npm-948-67415186\registry.npmjs.org\npm\-\npm-2.15.1.tgz
npm ERR! Expected: 1232b36de78a2129a7c91f69e47abb8f093308c2
npm ERR! Actual: 4367d007fab244d37e00b0a85424d28f8f33d04e
npm ERR! From: https://registry.npmjs.org/npm/-/npm-2.15.1.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
Using node for the first time. Getting the following error while install Cordova "npm install -g cordova".
Using Git on windows 8

NPM EXPRESS module installation error

I am getting below error while trying to install EXPRESS.js package with NPM. I am not sure why this is coming. I am trying with admin user on Windows PC.
ERROR 1:
C:\Users\Dell>npm install -g express
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=connect ECONNR
EFUSED
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 settin
gs.
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! C:\Users\Dell\npm-debug.log
ERROR 2: after running "npm config delete proxy" command.
C:\Users\Dell>npm install -g express
npm ERR! fetch failed https://registry.npmjs.org/express/-/express-4.13.1.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND r
egistry.npmjs.org
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! shasum check failed for C:\Users\Dell\AppData\Local\Temp\npm-7968-a914624e\registry.npmjs.org\express\-\express-4.13.1.tgz
npm ERR! Expected: f117aa1d1f6bedbc8de5b6d71fc31a5acd0f63df
npm ERR! Actual: 6e848d49c41d8af4d604e4c76036af8a5552ec5a
npm ERR! From: https://registry.npmjs.org/express/-/express-4.13.1.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Dell\npm-debug.log

Installing Cordova CLI using npm on windows xp

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 !

Resources