我开始关注本教程: http://mobileangularui.com/blog/using-the-generator/ 经过一天的解决错误和依赖,现在我被困在我的自耕农,因为我没有在互联网上找到任何答案或类似的案例!
当我尝试“yo mobileangularui”时,它会显示:
_-----_
| | .--------------------------.
|--(o)--| | Welcome to Mobile |
--------- | Angular Ui Boilerplate |
( _´U`_ ) | generator! |
/___A___\ '--------------------------'
| ~ |
并且它会永久挂起,而不会提示输入应用名称
知道我在运行Windows 10,有什么帮助吗?
当我手动停止时,我得到了这个:
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 MuteStream.ondata (stream.js:31:26)
at emitOne (events.js:96:13)
at MuteStream.emit (events.js:188:7)
readline.js:991
throw err;
^
Error: This socket is closed
at WriteStream.Socket._writeGeneric (net.js:683:19)
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 Console.log (console.js:43:16)
at module.exports.UI.onForceClose (C:\Users\Wail\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\node_modules\inquirer\lib\ui\baseUI.js:32:11)
at emitNone (events.js:86:13)
at Interface.emit (events.js:185:7)
感谢。
答案 0 :(得分:2)
您似乎遇到了Node 7.1.0 https://github.com/nodejs/node/issues/9542
中发布的错误我的建议是降级到Node 7.0,直到他们发布补丁版本。