Heim > Fragen und Antworten > Hauptteil
安装yoeman后,运行yo -v出现:
即
C:Users张洋WebstormProjectsreact_gallaryreact_gallary [master +19 ~2 -0 !]> yo -v
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 Object.exports.show (C:\Users\张洋\AppData\Roaming\npm\node_modules\yo\node_modules\cli-cursor\index.js:7:17)
at Prompt.onSubmit (C:\Users\张洋\AppData\Roaming\npm\node_modules\yo\node_modules\inquirer\lib\prompts\list.js:119:13)
at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.next (C:\Users\张洋\AppData\Roaming\npm\node_modules\yo\node_modules\rx-lite\rx.lite.js:1535:12)
at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (C:\Users\张洋\AppData\Roaming\npm\node_modules\yo\node_modules\rx-lite\rx.lite.js:1469:31)
怎么办?