TypeError:无法读取undefined的属性'pipesCount'

时间:2017-05-31 07:14:58

标签: cordova ionic-framework

我正在使用ionic来构建一个混合应用程序并且只更新了所有内容。

?>

我安装了我的android和ios平台然后我运行'离子cordova资源'来安装我的新图标和启动。我正在尝试运行'离子上传,我收到了这个错误:

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'并获得了一些新信息

`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)`

2 个答案:

答案 0 :(得分:3)

https://nodejs.org/en/

安装节点@ 6当前lts

答案 1 :(得分:1)

NodeJS v8.1.0中解决了问题