atom 安装插件出现 EIO 错误

今天给 atom 安装一个插件autocomplete-python的时候出现错误

  1. npm ERR! Windows_NT 6.1.7600
  2. npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ato
  3. m-space-pen-views@2.1.0"
  4. npm ERR! node v4.2.4
  5. npm ERR! npm v2.14.12
  6. npm ERR! code EIO
  7. npm ERR! errno EIO
  8. npm ERR! syscall write
  9. npm ERR! write EIO
  10. npm ERR!
  11. npm ERR! If you need help, you may report this error at:
  12. npm ERR! <https://github.com/npm/npm/issues>
  13. npm ERR! Please include the following file with any support request:
  14. npm ERR! C:\Users\r3call\npm-debug.log

查了下资料, 发现居然是因为编码问题造成的
解决方法是这样的

  1. C:\Users\r3call>chcp 850
  2. C:\Users\r3call>npm install atom-space-pen-views@2.1.0
  3. C:\Users\r3call>chcp 936
posted @ 2016-03-12 17:21  r3call  阅读(1137)  评论(0编辑  收藏  举报