ionic pro给出错误错误:作业失败:退出状态1

时间:2017-10-17 09:41:53

标签: angular cordova typescript ionic-framework ionic3

我已将我的项目推送到离子专业版库,我在离线专业版在线构建项目时遇到错误

Error: Failed to transpile program
at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:137:20
at Promise ()
at transpileWorker (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:103:12)
at Object.transpile (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:61:12)
at buildProject (/usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:97:78)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:47:16
at 
npm info lifecycle ionic-hello-world@1.0.0~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ionic-hello-world@1.0.0 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ionic-hello-world@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitlab-runner/.npm/_logs/2017-10-10T09_34_40_291Z-debug.log
npm run build failed
Make sure your project has a build script in the package.json
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1

我不知道该做什么以及该怎么做?

离子信息

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.13.1
ionic (Ionic CLI) : 3.13.1

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 1.3.12
Cordova Platforms  : android 6.1.2
Ionic Framework    : ionic-angular 3.5.0

System:

Android SDK Tools : 26.0.2
Node              : v7.8.0
npm               : 4.2.0 
OS                : Linux 4.4

Misc:

backend : pro

请帮助我,所有的建议表示赞赏。 提前谢谢

1 个答案:

答案 0 :(得分:0)

您使用的是非常旧的app-scripts版本。您必须将其更新为最新版本。

这是非常古老的:

@ionic/app-scripts : 1.3.12 

最新版本为3.0.0

并且也使用latest Ionic 3.7.1