我使用 npm 安装了 Node.js(使用 http://nodejs.org 中的 windows installler)。然后我输入了
npm install -g coffee-script
但是安装失败。这是完整的日志(npm-debug.log):https://github.com/npm/npm/issues/5205
相关部分:
30 error Error: connect EAFNOSUPPORT
30 error at errnoException (net.js:904:11)
30 error at connect (net.js:766:19)
30 error at net.js:845:9
30 error at asyncCallback (dns.js:68:16)
30 error at Object.onanswer [as oncomplete] (dns.js:121:9)
问题是什么,我应该做什么?
--
更新:我在 MacBook Air 上通过 Parallels Desktop 运行 Windows XP (SP3)。
最佳答案
EAFNOSUPPORT 将是我的第一个猜测。 Try this :
To remove IPv6
- Open Network Connections
- Right-click any local area connection, and then click Properties.
- Click Microsoft TCP/IP version 6 in the list of installed components, and then click Uninstall.
- In the Uninstall Microsoft TCP/IP version 6 dialog box, click Yes.
- Click Close to save changes to your network connection.
然后再次尝试安装。
关于windows - 无法在 Windows XP 上使用 npm 安装 CoffeeScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23639082/