【问题标题】:npm install -g <package> error EADDRINUSEnpm install -g <package> 错误 EADDRINUSE
【发布时间】:2016-05-29 23:23:38
【问题描述】:

我一直在尝试通过 SublimeLinter-jshint 所需的 npm 安装 jshint。

我正在运行 Windows 7(64 位)。它似乎一直失败并显示错误消息:

`C:\Users\Ephekz>npm install -g jshint
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files (
x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "jshint"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code EADDRINUSE
npm ERR! errno EADDRINUSE
npm ERR! syscall connect

npm ERR! connect EADDRINUSE
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\Ephekz\npm-debug.log`

到目前为止我已经尝试过了:

  1. 禁用 AVG 防病毒软件
  2. 禁用 windows 防火墙
  3. 使用 netstat -aon 检查端口 443 是否正在被其他服务使用:findstr:443。 (该端口没有监听)
  4. 尝试了不同版本的nodejs v.5.6.0、v.4.3.0、v.0.1.24
  5. 尝试了多个互联网连接,也尝试了没有路由器的互联网连接
  6. 试过“npm cache clean”
  7. 试过“npm config set registry https://registry.npmjs.org/”和“npm config set registry http://registry.npmjs.org/”
  8. 我已尝试安装成功的其他软件包(bower)。
  9. 我没有通过代理运行

我不确定要从这里做什么才能完成这项工作。任何建议将不胜感激。我在下面附上了调试日志的链接:

https://github.com/npm/npm/files/133529/npm-debug.txt

【问题讨论】:

    标签: node.js windows npm jshint sublimelinter


    【解决方案1】:

    如果有人遇到类似问题,我可以通过重新安装网络适配器的驱动程序来解决此问题。

    【讨论】:

      猜你喜欢
      • 2022-08-16
      • 2018-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-10
      • 2019-10-08
      • 2017-06-07
      • 1970-01-01
      相关资源
      最近更新 更多