Cannot build in ionic pro?


#1

Build log :

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on ip-10-2-214-40 (f537d27d)
Using Shell executor...
Running on ip-10-2-214-40...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/f537d27d/0/gabenthegamer/Checkin'...
Checking out dc76fac9 as develop...
Skipping Git submodules setup
$ run "fetch-updates"
Running Stage fetch-updates for Job: 5568865
Checking for build process updates...
$ run "build-android"
Running Stage build-android for Job: 5568865
Parsing ionic.config.json for project settings
Project Settings:
    Name: checkin
    App ID:
    Type: ionic1
$ npm install --quiet --no-optional
 
> node-sass@4.9.0 install /usr/src/app/node_modules/node-sass
> node scripts/install.js
 
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/linux-x64-57_binding.node
Download complete
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/gitlab-runner/.npm/node-sass/4.9.0/linux-x64-57_binding.node
 
> node-sass@4.9.0 postinstall /usr/src/app/node_modules/node-sass
> node scripts/build.js
 
Binary found at /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
npm WARN checkin@0.0.1 No repository field.
npm WARN checkin@0.0.1 No license field.
 
added 483 packages from 290 contributors in 11.828s
[!] 19 vulnerabilities found [1850 packages audited]
    Severity: 2 Low | 12 Moderate | 5 High
    Run `npm audit` for more detail
 
$ npm install --quiet --no-optional success
Printing Build Environment Details
$ ionic info
 
cli packages: (/usr/local/lib/node_modules)
 
    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0
 
global packages:
 
    cordova (Cordova CLI) : 8.0.0
    Gulp CLI              : CLI version 3.9.1 Local version 3.9.1
 
local packages:
 
    Cordova Platforms : none
    Ionic Framework   : ionic1 1.3.3
 
System:
 
    Android SDK Tools : 26.0.1
    Node              : v8.11.1
    npm               : 5.10.0
    OS                : Linux 4.4
 
Environment Variables:
 
    ANDROID_HOME : /opt/android-sdk
 
Misc:
 
    backend : pro
 
$ ionic info success
$ cordova platform add android --no-fetch
Using cordova-fetch for cordova-android@6.4.0
Adding android project...
Creating Cordova project for the Android platform:
    Path: platforms/android
    Package: io.ionic.starter
    Name: MyApp
    Activity: MainActivity
    Android target: android-26
Subproject Path: CordovaLib
Android project created with cordova-android@6.4.0
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android
 
               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
         
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Installing "cordova-plugin-splashscreen" for android
Adding cordova-plugin-splashscreen to package.json
Saved plugin info for "cordova-plugin-splashscreen" to config.xml
Discovered plugin "cordova-plugin-ionic-webview" in config.xml. Adding it to the project
Installing "cordova-plugin-ionic-webview" for android
Adding cordova-plugin-ionic-webview to package.json
Saved plugin info for "cordova-plugin-ionic-webview" to config.xml
Discovered plugin "cordova-plugin-ionic-keyboard" in config.xml. Adding it to the project
Installing "cordova-plugin-ionic-keyboard" for android
Adding cordova-plugin-ionic-keyboard to package.json
Saved plugin info for "cordova-plugin-ionic-keyboard" to config.xml
Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to the project
Installing "cordova-plugin-camera" for android
Subproject Path: CordovaLib
Adding cordova-plugin-camera to package.json
Saved plugin info for "cordova-plugin-camera" to config.xml
Discovered plugin "cordova-plugin-file" in config.xml. Adding it to the project
Installing "cordova-plugin-file" for android
 
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
 
If this is a new application no changes are required.
 
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
 
      ""
 
to config.xml in order for the application to find previously stored files.
       
Adding cordova-plugin-file to package.json
Saved plugin info for "cordova-plugin-file" to config.xml
Discovered plugin "cordova-plugin-filechooser" in config.xml. Adding it to the project
Installing "cordova-plugin-filechooser" for android
Adding cordova-plugin-filechooser to package.json
Saved plugin info for "cordova-plugin-filechooser" to config.xml
Discovered plugin "cordova-plugin-file-transfer" in config.xml. Adding it to the project
Installing "cordova-plugin-file-transfer" for android
Plugin dependency "cordova-plugin-file@6.0.1" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on android.
Adding cordova-plugin-file-transfer to package.json
Saved plugin info for "cordova-plugin-file-transfer" to config.xml
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Saved plugin info for "cordova-plugin-device" to config.xml
Discovered plugin "cordova-plugin-actionsheet" in config.xml. Adding it to the project
Installing "cordova-plugin-actionsheet" for android
Adding cordova-plugin-actionsheet to package.json
Saved plugin info for "cordova-plugin-actionsheet" to config.xml
Discovered plugin "cordova-plugin-filepath" in config.xml. Adding it to the project
Installing "cordova-plugin-filepath" for android
Subproject Path: CordovaLib
Adding cordova-plugin-filepath to package.json
Saved plugin info for "cordova-plugin-filepath" to config.xml
Running command: /usr/src/app/hooks/after_prepare/010_add_platform_class.js /usr/src/app
(node:1) UnhandledPromiseRejectionWarning: Error: spawn EACCES
    at _errnoException (util.js:1022:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at Object.exports.spawn (child_process.js:502:9)
    at Object.exports.spawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:134:31)
    at runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:225:23)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:166:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1) [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.
$ cordova platform add android --no-fetch success
$ cordova build android
Running command: /usr/src/app/hooks/after_prepare/010_add_platform_class.js /usr/src/app
(node:1) UnhandledPromiseRejectionWarning: Error: spawn EACCES
    at _errnoException (util.js:1022:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at Object.exports.spawn (child_process.js:502:9)
    at Object.exports.spawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:134:31)
    at runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:225:23)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:166:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1) [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.
$ cordova build android success
Running after script...
$ run "clean-up"
Running Stage clean-up for Job: 5568865
ERROR: Job failed: exit status 1