成功安装以下节点包后:
执行karma-init
时出现以下错误:
C:\Projects\SocialMeal>karma init
events.js:160
throw er; // Unhandled 'error' event
^
Error: write EINVAL
at exports._errnoException (util.js:1022:11)
at WriteStream.Socket._writeGeneric (net.js:715:26)
at WriteStream.Socket._write (net.js:734:8)
at doWrite (_stream_writable.js:334:12)
at writeOrBuffer (_stream_writable.js:320:5)
at WriteStream.Writable.write (_stream_writable.js:247:11)
at WriteStream.Socket.write (net.js:661:40)
at Interface._writeToOutput (readline.js:256:17)
at Interface._insertString (readline.js:406:12)
at Interface._ttyWrite (readline.js:933:18)
at Interface.write (readline.js:352:24)
任何线索?
答案 0 :(得分:0)
过了一段时间我找到了它。
这似乎是一个Node.js 7.1.0问题。它发生在更新的Node.js版本(< 7.0.0),如下所示:
https://github.com/nodejs/node/issues/9542
在他们解决此问题之前,您需要卸载node.js并安装旧版本(例如:6.9.1)以便无法正常工作。