My newest npm constantly crashes, when I trying to install some npm package (npm install). I have to repeat this process for example for 5 times before I install all dependencies and even then, It sometimes miss some nested dependencies. So I have to go through the tree and run npm install again.
I tried to use this but with no luck. I'am not behind a proxy. Where should be problem? Installing is taking so long, and my internet connection is not slow.
npm config set registry http://registry.npmjs.org/
c:\work\projects\java\project\frontend-src\node_modules\gulp\node_modules\orchestrator>npm install
npm ERR! fetch failed http://registry.npmjs.org/event-stream/-/event-stream-3.1.7.tgz
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz
npm ERR! fetch failed http://registry.npmjs.org/debug/-/debug-2.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz
npm ERR! fetch failed http://registry.npmjs.org/debug/-/debug-2.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz
npm ERR! fetch failed http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz
npm ERR! fetch failed http://registry.npmjs.org/from/-/from-0.1.3.tgz
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz
npm ERR! network read ECONNRESET
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! System Windows_NT 6.1.7601
npm ERR! command "C:\\Apps\\nodejs\\\\node.exe" "C:\\Apps\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd c:\work\projects\java\project\frontend-src\node_modules\gulp\node_modules\orchestrator
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall read
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! not ok code 0
I don't know how it is possible but these problems disappered after I switched to WIFI on my laptop. I have MSI GT70 which has Killer e2200 Atheros gigabit ethernet. It is likely that cause of this problems is driver/software for manage network traffic (Qualcomm bigfoot) which prefer packets of games. I can't tell for sure because I didn't find any other driver for my configuration.
Related
Here is the error which I am getting on installing npm packages, I have uninstalled node from my windows and again installed but still getting this error:
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/axios failed, reason: connect ETIMEDOUT 104.16.16.35:443
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR! C:\Users\Ch Wasiq\AppData\Roaming\npm-cache\_logs\2020-08-31T07_38_36_764Z-debug.log
I am trying to Install the VUE CLI into my laptop but it gives following errors.
λ npm install -g vue-cli
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.nmpjs.org/vue-cli failed, reason: connect ETIMEDOUT 218.93.250.18:443
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR! C:\Users\ABDUR REHMAN KHALID\AppData\Roaming\npm-cache\_logs\2018-01-29T07_46_22_789Z-debug.log
This is not a Vue issue. It seems like your registry is set to the wrong url. Set registry to the correct url with:
npm config set registry https://registry.npmjs.org/
if you are trying to install vue-cli then you should try this.
sudo npm install --global vue-cli
Im trying to install socket.io into my beagleboneblack, system says my node -v is v0.8.22 and for installation should be at least higher than 0.10.0.
but I can`t upgrade my node.
For installing socket.io, I enter the following text:
/usr/bin/ntpdate -b -s -u pool.ntp.org
cd /var/lib/cloud9
npm install socket.io
cp bonescript-socketio/* /var/lib/cloud9
Error message:
http GET https://registry.npmjs.org/socket.io-parser/2.3.1
WARN engine object-assign#4.1.0: wanted {"node":">=0.10.0"} (current: {"node":"v0.8.22","npm":"1.2.14"})
ERR! fetch failed https://registry.npmjs.org/ms/-ms-0.7.1.tgz
Error message upon completion:
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 Linux 3.8.13
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "socket.io"
npm ERR! cwd /var/lib/cloud9
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/cloud9/npm-debug.log
npm ERR! not ok code 0
for node upgrade I've tried
opkg update
but server seems to be down..
Appreciate your attention.
If you type in:
cat /etc/dogtag
you will get a readout. This readout tells you what version of Linux you have on your machine. If you go to http://elinux.org/Beagleboard:BeagleBoneBlack_Debian, the images are updated regularly for the BBB and BBG boards.
Try to update your image and then upgrade to the newer version of socket.io.
Seth
P.S. If this does not work, please let me know.
I am having some trouble with grunt. I am using a small software piece writing by us to publish and make an email, however when I run the command to create the emails a grunt error happens and I have tried fixing it but I cannot, it works on the rest of my teams computer but it does not work on mine. Could someone please help?
Running "imagemin:dynamic" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
Thank you for the help
These are other errors I get:
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v4.2.4
npm ERR! npm v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! emails#1.0.0 dev: `grunt default`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the emails#1.0.0 dev script 'grunt default'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the emails package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt default
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs emails
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls emails
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/iPatriot/projects/aliada/emails/npm-debug.log
I try to install node.js modules using:
npm install express
but I get this error:
npm http GET https://registry.npmjs.org/express
npm ERR! TypeError: Request path contains unescaped characters.
npm ERR! at Agent.request (_http_agent.js:264:11)
npm ERR! at TunnelingAgent.exports.request (http.js:52:22)
npm ERR! at TunnelingAgent.createSocket (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:117:25)
npm ERR! at TunnelingAgent.createSecureSocket [as createSocket] (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:184:41)
npm ERR! at TunnelingAgent.addRequest (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:80:8)
npm ERR! at new ClientRequest (_http_client.js:112:16)
npm ERR! at Agent.request (_http_agent.js:279:10)
npm ERR! at Object.exports.request (https.js:130:22)
npm ERR! at Request.start (/usr/local/lib/node_modules/npm/node_modules/request/index.js:594:30)
npm ERR! at Request.end (/usr/local/lib/node_modules/npm/node_modules/request/index.js:1186:28)
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 3.6.11-7.fc16.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "express"
npm ERR! cwd /usr/local/src/node
npm ERR! node -v v0.11.5-pre
npm ERR! npm -v 1.3.5
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/src/node/npm-debug.log
npm ERR! not ok code 0
May be happening I use a proxy I set it up this way to allow downloads from ips outside my network
export https_proxy='http://172.21.0.12:3128'
I hope you can help me
Set proxy from commandline.
npm config set proxy http://proxydomain:port/
If error occur yet, additional try next.
npm config set registry http://registry.npmjs.org/
These work for me.
(ref http://sushichop.blogspot.jp/2013/01/npm-install.html)
Though late enough, I've bumped into this too after updating nodejs (to 4.1.1) and npm (to something like 1.4.x) on Linux.
I've tried the suggested solution, but changing the registry entry did not help in all cases.
Lastly, having decided to reinstall npm, I found this update source [on npm github][1]
curl -L https://www.npmjs.org/install.sh | sh
which updated my npm to 3.3.8 and all related package installation troubles have been blown away.