问题
I have been trying to install jshint through npm that is required for SublimeLinter-jshint.
I am running windows 7 (64bit). It seems to keep failing with the error message:
`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`
I have tried this so far:
- disabling AVG antivirus
- disabling windows Firewall
- checking if port 443 is in use by another service using netstat -aon : findstr:443. (nothing is listening in on that port)
- tried different versions of nodejs v.5.6.0, v.4.3.0, v.0.1.24
- tried multiple internet connections, also tried internet connection with no router
- tried "npm cache clean"
- tried "npm config set registry
https://registry.npmjs.org/
" and also "npm config set registryhttp://registry.npmjs.org/
" - I have tried installing a different package (bower) which was successful.
- I am not running through a proxy
I am not really sure what to do from here to make this work. Any suggestions would be greatly appreciated. I have attached a link to the debug log below:
https://github.com/npm/npm/files/133529/npm-debug.txt
回答1:
In case anyone is experiencing a similar issue, I was able to resolve this issue by reinstalling the driver for my network adapter.
来源:https://stackoverflow.com/questions/35470551/npm-install-g-package-error-eaddrinuse