离子框架:将离子版本更新为4后出现错误

时间:2018-09-26 10:30:33

标签: ionic-framework ionic4

更新离子版本后出现此问题。我什至不能开始我的离子项目。有谁可以帮助我解决这个问题。谢谢。因为我不能使用离子信息,所以我只列出npm来显示到目前为止的内容。

$ npm list -g --depth=0

/Users/phyopwintthu/.nvm/versions/node/v10.10.0/lib

├── cordova@8.0.0

├── hoek@5.0.4

├── ionic@4.1.2

├── npm@6.4.1

├── socks@2.2.1

└── ws@3.3.2
> $ ionic events.js:167
>       throw er; // Unhandled 'error' event
>       ^
> 
> TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be one of
> type string or Buffer. Received type object
>     at validChunk (_stream_writable.js:258:10)
>     at WriteStream.Writable.write (_stream_writable.js:292:21)
>     at process.<anonymous> (/Users/phyopwintthu/.nvm/versions/node/v10.10.0/lib/node_modules/ionic/bin/ionic:9:63)
>     at process.emit (events.js:182:13)
>     at emitPromiseRejectionWarnings (internal/process/promises.js:105:20)
>     at process._tickCallback (internal/process/next_tick.js:69:34) Emitted 'error' event at:
>     at validChunk (_stream_writable.js:261:12)
>     at WriteStream.Writable.write (_stream_writable.js:292:21)
>     [... lines matching original stack trace ...]
>     at process._tickCallback (internal/process/next_tick.js:69:34)

1 个答案:

答案 0 :(得分:0)

您可以尝试这个;

npm uninstall -g ionic@4

及以后

npm install -g ionic@3

,如果您想更改离子版本,也可以选中Upgrade Link