atom 安装插件出现 EIO 错误
今天给 atom 安装一个插件autocomplete-python
的时候出现错误
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ato
m-space-pen-views@2.1.0"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code EIO
npm ERR! errno EIO
npm ERR! syscall write
npm ERR! write EIO
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\r3call\npm-debug.log
查了下资料, 发现居然是因为编码问题造成的
解决方法是这样的
C:\Users\r3call>chcp 850
C:\Users\r3call>npm install atom-space-pen-views@2.1.0
C:\Users\r3call>chcp 936