【问题标题】:ionic pro gives an error ERROR: Job failed: exit status 1ionic pro 报错 ERROR: Job failed: exit status 1
【发布时间】:2018-03-28 23:13:06
【问题描述】:

我已将我的项目推送到 ionic pro 存储库,但在 ionic pro online 中构建项目时出现错误

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

请帮助我,感谢所有建议。 提前谢谢你

【问题讨论】:

  • 你能显示ionic info吗?
  • 当然,我会写

标签: angular cordova typescript ionic-framework ionic3


【解决方案1】:

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

这是很古老的:

@ionic/app-scripts : 1.3.12 

最新版本是3.0.0

也可以使用latest Ionic 3.7.1

【讨论】:

  • 非常感谢您的回答
  • 很高兴听到它有帮助:)
猜你喜欢
  • 1970-01-01
  • 2015-11-09
  • 1970-01-01
  • 2011-08-20
  • 2019-07-04
  • 2020-10-13
  • 2019-03-19
  • 2020-11-04
  • 1970-01-01
相关资源
最近更新 更多