简体   繁体   中英

Can not install coffeescript using npm on Windows XP

I installed Node.js (using windows intaller from http://nodejs.org ) with npm. Then I typed

npm install -g coffee-script

But installation failes. Here is a full log (npm-debug.log): https://github.com/npm/npm/issues/5205

The relevant part:

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)

What is the problem and what should I do?

--

Update: I'm running Windows XP (SP3) via Parallels Desktop on MacBook Air.

That EAFNOSUPPORT would be my first guess. Try this :

To remove IPv6

  1. Open Network Connections
  2. Right-click any local area connection, and then click Properties.
  3. Click Microsoft TCP/IP version 6 in the list of installed components, and then click Uninstall.
  4. In the Uninstall Microsoft TCP/IP version 6 dialog box, click Yes.
  5. Click Close to save changes to your network connection.

Then try installing again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM