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

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

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

global packages:

@ionic/cli-utils : 1.2.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.2.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms               : android 6.2.3 ios 4.4.0
Ionic Framework                 : ionic-angular 3.3.0

System:

Node       : v8.0.0
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002 
ios-deploy : 1.9.1 
ios-sim    : 5.0.13

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

`Running app-scripts build: 

[15:06:57]  build dev started ... 
[15:06:57]  clean started ... 
[15:06:57]  clean finished in 2 ms 
[15:06:57]  copy started ... 
[15:06:57]  transpile started ... 
[15:07:00]  transpile finished in 2.82 s 
[15:07:00]  preprocess started ... 
[15:07:00]  deeplinks started ... 
[15:07:00]  deeplinks finished in 23 ms 
[15:07:00]  preprocess finished in 24 ms 
[15:07:00]  webpack started ... 
[15:07:00]  copy finished in 3.13 s 
[15:07:09]  webpack finished in 9.33 s 
[15:07:09]  sass started ... 
[15:07:11]  sass finished in 1.45 s 
[15:07:11]  postprocess started ... 
[15:07:11]  postprocess finished in 13 ms 
[15:07:11]  lint started ... 
[15:07:11]  build dev finished in 13.74 s 

_stream_readable.js:545
  switch (state.pipesCount) {
               ^

TypeError: Cannot read property 'pipesCount' of undefined
    at module.exports.Readable.pipe (_stream_readable.js:545:16)
    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)
    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)
    at module.exports.ArchiveOutputStream.entry (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/archive-output-stream.js:88:10)
    at module.exports.ZipStream.entry (/usr/local/lib/node_modules/ionic/node_modules/zip-stream/index.js:138:49)
    at Zip.append (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/plugins/zip.js:53:15)
    at Archiver._moduleAppend (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/core.js:172:16)
    at Archiver._onQueueTask (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/core.js:370:8)
    at /usr/local/lib/node_modules/ionic/node_modules/async/dist/async.js:4045:9
    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.

相关问题