版本vue:3.7.0
当我输入CMD时:
创建“项目名称”
我收到以下答复:
assert.js:85
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: 5895 == 0
at ClientRequest.onConnect (C:\Users\mikag\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\tunnel-agent\index.js:160:14)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:189:13)
at Socket.socketOnData (_http_client.js:475:11)
at Socket.emit (events.js:189:13)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at Socket.Readable.push (_stream_readable.js:220:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
答案 0 :(得分:0)
您是否尝试过NodeJS v12.1.0,因为它现在应该已经修复。 根据以下内容,这是已知问题之一:https://github.com/vuejs/vue-cli/issues/3883