2017-10-17 107 views
1

我已經把我的項目離子親庫,我已經在離子親在線離子親給出錯誤:作業失敗:退出狀態1

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 [email protected]~build: Failed to exec build script 
npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] build: `ionic-app-scripts build` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] 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 

請幫我和所有的建議表示讚賞。 預先感謝您

+0

你能顯示'離子信息'嗎? – Sampath

+0

當然,我會寫 –

回答

0

您正在使用非常陳舊的app-scripts版本。您必須將其更新爲最新版本。

這是很老:

@ionic/app-scripts : 1.3.12 

最新版本是3.0.0

,還可以使用latest Ionic 3.7.1過。

+1

非常感謝你的回答 –

+0

很高興聽到它幫助:) – Sampath

相關問題