cordova TypeError:无法读取未定义的属性'pipesCount'

m1m5dgzv  于 2022-11-15  发布在  其他
关注(0)|答案(2)|浏览(143)

我正在使用离子建立一个混合应用程序,刚刚更新了一切。

  1. global packages:
  2. @ionic/cli-utils : 1.2.0
  3. Cordova CLI : 7.0.1
  4. Ionic CLI : 3.2.0
  5. local packages:
  6. @ionic/app-scripts : 1.3.7
  7. @ionic/cli-plugin-cordova : 1.2.1
  8. @ionic/cli-plugin-ionic-angular : 1.2.0
  9. Cordova Platforms : android 6.2.3 ios 4.4.0
  10. Ionic Framework : ionic-angular 3.3.0
  11. System:
  12. Node : v8.0.0
  13. OS : macOS Sierra
  14. Xcode : Xcode 8.3.2 Build version 8E2002
  15. ios-deploy : 1.9.1
  16. ios-sim : 5.0.13

我安装了我的Android和iOS平台,然后我运行'离子 cordova 资源'安装我的新图标和飞溅.我试图运行'离子上传,我得到这个错误:

  1. `Running app-scripts build:
  2. [15:06:57] build dev started ...
  3. [15:06:57] clean started ...
  4. [15:06:57] clean finished in 2 ms
  5. [15:06:57] copy started ...
  6. [15:06:57] transpile started ...
  7. [15:07:00] transpile finished in 2.82 s
  8. [15:07:00] preprocess started ...
  9. [15:07:00] deeplinks started ...
  10. [15:07:00] deeplinks finished in 23 ms
  11. [15:07:00] preprocess finished in 24 ms
  12. [15:07:00] webpack started ...
  13. [15:07:00] copy finished in 3.13 s
  14. [15:07:09] webpack finished in 9.33 s
  15. [15:07:09] sass started ...
  16. [15:07:11] sass finished in 1.45 s
  17. [15:07:11] postprocess started ...
  18. [15:07:11] postprocess finished in 13 ms
  19. [15:07:11] lint started ...
  20. [15:07:11] build dev finished in 13.74 s
  21. _stream_readable.js:545
  22. switch (state.pipesCount) {
  23. ^
  24. TypeError: Cannot read property 'pipesCount' of undefined
  25. at module.exports.Readable.pipe (_stream_readable.js:545:16)
  26. at module.exports.ZipArchiveOutputStream._smartStream (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:184:11)
  27. at module.exports.ZipArchiveOutputStream._appendStream (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:96:20)
  28. at module.exports.ArchiveOutputStream.entry (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/archive-output-stream.js:88:10)
  29. at module.exports.ZipStream.entry (/usr/local/lib/node_modules/ionic/node_modules/zip-stream/index.js:138:49)
  30. at Zip.append (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/plugins/zip.js:53:15)
  31. at Archiver._moduleAppend (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/core.js:172:16)
  32. at Archiver._onQueueTask (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/core.js:370:8)
  33. at /usr/local/lib/node_modules/ionic/node_modules/async/dist/async.js:4045:9
  34. at process (/usr/local/lib/node_modules/ionic/node_modules/async/dist/async.js:2316:17)`

有什么办法解决这个问题吗?

**更新:我运行了“ionic package build android”并获得了一些新信息

(node:18146) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error [ERR_IPC_CHANNEL_CLOSED]: channel closed (node:18146) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ddhy6vgd

ddhy6vgd1#

https://nodejs.org/en/安装节点@6当前lts

qnakjoqk

qnakjoqk2#

NodeJS v8.1.0中解决的问题

相关问题