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

Ionic framework: Error after updating ionic version to 4

我在更新 ionic 版本后遇到了这个问题。我什至无法开始我的离子项目。有没有人可以帮助我解决这个问题。谢谢你。因为我不能使用 ionic 信息,所以我只列出 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)

你可以试试这个;

npm uninstall -g ionic@4

以后

npm install -g ionic@3

而且如果你想改变你的离子版本,你可以检查Upgrade Link