nodejs 模块 npm 安装错误/gcm-node 模块发送错误 [英] nodejs module npm install error / gcm-node module send err

查看:50
本文介绍了nodejs 模块 npm 安装错误/gcm-node 模块发送错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 ubuntu12.0.4 服务器,npm 安装错误,请帮帮我

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 发送错误 > GCM 请求期间出现异常:错误:getaddrinfo ENOTFOUND


node-gcm send error > Exception during GCM request: Error: getaddrinfo ENOTFOUND

推荐答案

这可能是您的 Internet 连接问题.你可以尝试安装一个不同的模块,比如 npm install express 并验证你是否通过 ping stackoverflow.com

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

您可能还想检查您是否使用了最新版本的 node 和 npm,如果可能的话,甚至可以重新安装,以防安装损坏.

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 配置集代理 http://proxy.company.com:8080

<代码>npm 配置集 https-proxy http://proxy.company.com:8080

这篇关于nodejs 模块 npm 安装错误/gcm-node 模块发送错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆