2016-11-19 172 views
0

我開始學習本教程: http://mobileangularui.com/blog/using-the-generator/ 後一個解決錯誤和依賴性的日子,現在我堅持我的自耕農,因爲我發現didn't任何答案或在互聯網上類似的情況!自耕農:喲命令掛起永遠

當我嘗試「喲mobileangularui」則顯示:

_-----_ 
|  | .--------------------------. 
|--(o)--| |  Welcome to Mobile | 
--------- | Angular Ui Boilerplate | 
(_´U`_) |  generator!  | 
/___A___\ '--------------------------' 
| ~ | 

,它永遠掛在這裏沒有promping的應用程序名稱

知道我是運行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) 

感謝。

回答

2

看起來你正在運行到節點發佈一個bug 7.1.0 https://github.com/nodejs/node/issues/9542

我的建議是降級到7.0的節點,直到他們發佈了一個補丁版本。

+0

完美答案,我卸載了節點7.1.0,並重試了當前的LTS版本6.9.1,它的工作原理! – walox