Why did this error happen? nodejs Error: write EIO

I made webApp with nodejs + mongodb + Backbone on window7-32bit, everything goes well until yestoday. but this morning I got this error:

events.js:72 throw er; // Unhandled 'error' event ^ Error: write EIO at errnoException (net.js:883:11) at Object.afterWrite (net.js:700:19) 

I googled around but no luck, I tried updating node and then got this error:

 npm ERR! Error: write EIO npm ERR! at errnoException (net.js:883:11) npm ERR! at Object.afterWrite (net.js:700:19) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! < npm-@googlegroups.com > npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "update" npm ERR! cwd C:\work\selink npm ERR! node -v v0.10.4 npm ERR! npm -v 1.2.18 npm ERR! syscall write npm ERR! code EIO npm ERR! errno EIO 

why did this error happen suddenly? any hint of this?

Thanks for any ideas.

+5
express
source share
2 answers

I just played Unicode support on the windows command line using code page 65001. I cannot install npm for installation, giving me the above error. Changing the codepage to 850 chcp 850 and running the same npm command, it works fine.

Thus, your problem may well be related to the encoding of your environment.

+22
source share

Changing the code page on the CP850 works, but if you want to get Unicode characters, you use the iconv-lite module

0
source share

All Articles