问题描述
我在window7-32bit上创建了一个带有nodejs + mongodb + Backbone的webApp,一切都很好,直到yestoday。但是今天早上我收到了这个错误:
I made a webApp with nodejs + mongodb + Backbone on window7-32bit, everything goes fine until yestoday. but I got this error this morning:
events.js:72
throw er; // Unhandled 'error' event
^
Error: write EIO
at errnoException (net.js:883:11)
at Object.afterWrite (net.js:700:19)
我googled了,但没有运气,我尝试更新节点,然后得到这个错误: / p>
I googled around but no luck, I tried update 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! <[email protected]>
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 this error happened suddenly? any hint about it?
感谢任何想法。
推荐答案
在Windows命令提示符下使用Unicode支持,使用代码页65001我无法得到npm的安装,给我上面的错误。将代码页更改为850 chcp 850
并运行完全相同的npm命令,然后正常工作。
I have just been playing with Unicode support in Windows command prompt, using the code-page 65001 I can't get npm to install, giving me the above error. Changing the code-page to 850 chcp 850
and running the exact same npm command it then works fine.
因此您的问题可能与您的环境编码有关。
Thus your problem could very well be related to the encoding your environment is in.
这篇关于为什么这个错误发生了? nodejs错误:写入EIO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!