Ionic TypeError:无效数据

时间:2018-10-24 15:21:01

标签: cordova ionic-framework

当我尝试运行任何离子命令时,都会出现相同的错误:

ionic serve
or
ionic info
or
ionic cordova platform rm android

总是相同的错误:

TypeError: Invalid data, chunk must be a string or buffer, not object
    at WriteStream.Socket.write (net.js:704:11)
    at process.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:9:63)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emitPendingUnhandledRejections (internal/process/promises.js:108:22)
    at runMicrotasksCallback (internal/process/next_tick.js:124:9)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

1 个答案:

答案 0 :(得分:0)

已解决。我恢复了项目文件夹的备份,现在我可以毫无问题地运行Ionic了。