nodejs module npm install error / gcm-node module send err - node.js

my ubuntu12.0.4 server,
npm install error, please help me
https://github.com/ToothlessGear/node-gcm
$npm install node-gcm
npm install node-gcm
npm WARN package.json dateformat#1.0.6-1.2.3 No repository field.
npm http GET http://registry.npmjs.org/node-gcm
npm http GET http://registry.npmjs.org/node-gcm
npm http GET http://registry.npmjs.org/node-gcm
npm ERR! network getaddrinfo ENOTFOUND
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 Linux 3.2.0-23-virtual
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "node-gcm"
npm ERR! cwd /home/Tonight
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.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! /home/Tonight/npm-debug.log
npm ERR! not ok code 0
node-gcm send error > Exception during GCM request: Error: getaddrinfo ENOTFOUND

This could be a problem with your connection to the Internet. Can you try to install a different module like npm install express and also verify you are connected to the Internet with ping stackoverflow.com
You might also want to check that you are using recent versions of node and npm and even maybe reinstall if possible in case something is corrupted with your installation.
If you need to setup a proxy this link details someone with a similar error and has a good explanation of how to solve it.
From the link above you could try:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

Related

problem with node sass npm package node modules

npm package installation problem from command line, general problem on several packages since the node sass installation attempt which did not install what to do now it blocks all package installations what happend??
i have uninstalled and reinstalled node it is still blocking npm, moreover it is very slow to give me the errors. something has happened and i don't know what.
Windows PowerShell
Copyright (C) Microsoft Corporation. Tous droits réservés.
Testez le nouveau système multiplateforme PowerShell https://aka.ms/pscore6
PS C:\Users\opsty> npm -v
6.14.8
PS C:\Users\opsty> npm install --global --production windows-build-tools
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/windows-build-tools failed, reason: connect ETIMEDOUT 93.184.216.34:8080
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\opsty\AppData\Roaming\npm-cache\_logs\2020-10-30T08_31_04_559Z-debug.log
PS C:\Users\opsty> npm install -g #angular/cli
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/#angular%2fcli failed, reason: connect ETIMEDOUT 93.184.216.34:8080
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/#angular/cli/-/cli-10.2.0.tgz failed, reason: connect ETIMEDOUT 93.184.216.34:8080
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\opsty\AppData\Roaming\npm-cache\_logs\2020-10-30T08_37_03_772Z-debug.log
PS C:\Users\opsty> npm install node-gyp
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/node-gyp failed, reason: connect ETIMEDOUT 93.184.216.34:8080
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz failed, reason: connect ETIMEDOUT 93.184.216.34:8080
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\opsty\AppData\Roaming\npm-cache\_logs\2020-10-30T08_43_11_642Z-debug.log
PS C:\Users\opsty>
This does not look like node or npm issue. Could it be your DNS server misbehaving?
In other words, when you see errors like this firstly you would need to make sure your computer can talk to the https://registry.npmjs.org/ DNS name and 93.184.216.34 IP address.
problem solved so I did a npm config delete proxy npm config delete htpp-proxy there are several methods
npm config delete proxy
npm config delete http-proxy
npm config delete https-proxy
npm config rm proxy
npm config rm https-proxy
npm config delete http-proxy
npm config delete https-proxy

npm install -g yo tunneling socket error

I am not able to run the command npm install -g yo .. and I am getting the following error !
E:\OneWeb\ngApp1>npm install -g yo
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "yo"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:794:
npm ERR! network
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! E:\OneWeb\ngApp1\npm-debug.log
Experienced a similar issue.
Was able to resolve by removing proxy variables from the .npmrc and then ensuring proxy environment variables were set properly (some were https instead of http).
registry=http://registry.npmjs.org/
proxy=http://xxxx:xxxx/
Just replace https with http while exporting the proxy:
export HTTPS_PROXY="http://myproxy.com:8080"
instead of
export HTTPS_PROXY="https://myproxy.com:8080"
Please try setting the registry server:
npm config set registry http://registry.npmjs.org/
npm cache clean
Does that help at all? If not, try changing it to the HTTPS registry (https://registry.npmjs.org/).
Also set strict-ssl to false with the command:
npm config set strict-ssl false

npm install --save express issuing a proxy error on OSX Yosemite

I have Node(v4.1.0) and npm(2.14.3) both installed but when I try to enter the commmand:
npm install --save express
I receive the following error message:
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "express"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND host host: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! /Users/Christopher_Pelnar/npm-debug.log
Anybody have any experiences or ideas for dealing with this issue? I have tried configuring proxy settings using:
npm config set registry=http://registry.npmjs.org
But that did not solve the issue.
Adding the following code into the command line resolved the issue:
npm config set proxy=http://registry.npmjs.org
Changing "registry" => "proxy" was the difference.

bower sudo install errors

I have been trying to install bower globally using this command:
sudo npm install -g bower
When I do I enter my password and I get a loading spinning bar. It stays like this for a few minutes then outputs these errors:
Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.3
npm ERR! npm v2.9.1
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
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'
Not sure whats going on. Is the Node and NPM out of date?
I got this to work by simply trying it from a different location and changing my permissions using this post. Seems to maybe just my network.

Cannot install socket.IO

I can't install socket.IO. It's in my virtualenv, if that matters. I am learning from a blog and I have installed till Node js. But I just can't install it in my Ubuntu VM. I get this error:
(chatn)robin#robin-VirtualBox:~/webs/chatn$ sudo npm install socket.io
npm http GET http://registry/socket.io
npm http GET http://registry/socket.io
npm http GET http://registry/socket.io
npm http GET http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 503 http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm ERR! fetch failed http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 503 http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm ERR! fetch failed http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http 200 http://registry.npmjs.org/socket.io/-/socket.io-0.9.16.tgz
npm http GET http://registry/socket.io-client/0.9.16
npm http GET http://registry/policyfile/0.0.4
npm http GET http://registry/base64id/0.1.0
npm http GET http://registry/redis/0.7.3
npm http GET http://registry/socket.io-client/0.9.16
npm http GET http://registry/policyfile/0.0.4
npm http GET http://registry/redis/0.7.3
npm http GET http://registry/base64id/0.1.0
npm http GET http://registry/redis/0.7.3
npm http GET http://registry/base64id/0.1.0
npm WARN optional dep failed, continuing redis#0.7.3
npm ERR! network getaddrinfo ENOTFOUND
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 Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "socket.io"
npm ERR! cwd /home/robin/webs/chatn
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm http GET http://registry/socket.io-client/0.9.16
npm http GET http://registry/policyfile/0.0.4
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/robin/webs/chatn/npm-debug.log
npm ERR! not ok code 0
I just don't know what's happening here.
Update:
Tried installing 'yeoman' but again got this message:
advenio#advenio-VirtualBox:~$ npm install -g yo
npm http GET http://registry/yo
npm http GET http://registry/yo
npm http GET http://registry/yo
npm ERR! network getaddrinfo ENOTFOUND
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 Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "yo"
npm ERR! cwd /home/advenio
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
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! /home/advenio/npm-debug.log
npm ERR! not ok code 0

Resources