Git push ionic <branch name> fails with npm not being able to find a file


#1

git push ionic pushes the code to ionic pro but the build fails with the following error:

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on ip-10-2-0-85 (c9648220)
Using Shell executor…
Running on ip-10-2-0-85…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/c9648220/0/project-1’…
Checking out 0f7caac9 as LATESTSTAGE…
Updating/initializing submodules recursively…
$ run “fetch-updates”
Running Stage fetch-updates for Job: 5508297
Checking for build process updates…
$ run “build-app”
Running Stage build-app for Job: 5508297
Parsing ionic.config.json for project settings
Project Settings:
Name:
App ID: 21c316de
Type: ionic-angular
Build script detected in package.json…
$ npm install --quiet --no-optional
npm WARN deprecated babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-minify
npm WARN deprecated babel-preset-babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-preset-minify
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/common@2.4.8 but none was installed.
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/compiler@2.4.8 but none was installed.
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/platform-browser@2.4.8 but none was installed.
npm WARN @ionic-native/social-sharing@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic/app-scripts@1.3.7 requires a peer of @angular/tsc-wrapped@* but none was installed.
npm WARN @ionic-native/app-availability@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/file-transfer@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/in-app-browser@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/instagram@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/native-storage@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/screen-orientation@4.7.0 requires a peer of @ionic-native/core@^4.2.0 but none was installed.

npm ERR! path /usr/src/app/node_modules/grpc/node_modules/cryptiles/node_modules/boom
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/grpc/node_modules/cryptiles/node_modules/boom’ -> ‘/usr/src/app/node_modules/grpc/node_modules/cryptiles/node_modules/.boom.DELETE’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitlab-runner/.npm/_logs/2018-04-25T23_17_13_363Z-debug.log
npm install --quiet --no-optional failed
Running after script…
$ run “clean-up”
Running Stage clean-up for Job: 5508297
ERROR: Job failed: exit status 1

I have already tried remove node_modules and re-run npm install. The issue still persists.

I also installed grpc node modules and cryptiles node module and reran the build, but same error.

Both grpc and cryptiles appear in package.json.

I would really appreciate your insights on this.

Thanks


#2

Package.json

{
“name”: “ionic-hello-world”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
@angular/common”: “4.1.2”,
@angular/compiler”: “4.1.2”,
@angular/compiler-cli”: “4.1.2”,
@angular/core”: “4.1.2”,
@angular/forms”: “4.1.2”,
@angular/http”: “4.1.2”,
@angular/platform-browser”: “4.1.2”,
@angular/platform-browser-dynamic”: “4.1.2”,
@angular/platform-server”: “2.4.8”,
@dojo/has”: “^2.0.0-beta1.1”,
@dojo/shim”: “^2.0.0-beta1.1”,
@google-cloud/storage”: “^1.6.0”,
@ionic-native/action-sheet”: “^4.3.1”,
@ionic-native/app-availability”: “^4.6.0”,
@ionic-native/camera”: “^3.14.0”,
@ionic-native/core”: “3.10.2”,
@ionic-native/diagnostic”: “^3.14.0”,
@ionic-native/facebook”: “^3.14.0”,
@ionic-native/file”: “^3.14.0”,
@ionic-native/file-transfer”: “^4.6.0”,
@ionic-native/geolocation”: “^3.8.0”,
@ionic-native/image-picker”: “^3.14.0”,
@ionic-native/in-app-browser”: “^4.6.0”,
@ionic-native/instagram”: “^4.6.0”,
@ionic-native/keyboard”: “^4.3.1”,
@ionic-native/native-storage”: “^4.5.0”,
@ionic-native/screen-orientation”: “^4.5.2”,
@ionic-native/social-sharing”: “^4.6.0”,
@ionic-native/splash-screen”: “3.10.2”,
@ionic-native/status-bar”: “3.10.2”,
@ionic-native/transfer”: “^3.13.1”,
@ionic/storage”: “2.0.1”,
“ImagePicker”: “git+https://github.com/dhavalsoni2001/ImagePicker.git”,
“angular2-elastic”: “^0.13.0”,
“angularfire2”: “^4.0.0-rc.1”,
“chart.js”: “^2.7.0”,
“chartjs-plugin-annotation”: “^0.5.7”,
“com.synconset.imagepicker”: “https://github.com/Telerik-Verified-Plugins/ImagePicker”,
“cordova-android”: “6.4.0”,
“cordova-ios”: “^4.4.0”,
“cordova-plugin-actionsheet”: “^2.3.3”,
“cordova-plugin-camera”: “^2.4.1”,
“cordova-plugin-compat”: “^1.2.0”,
“cordova-plugin-console”: “^1.1.0”,
“cordova-plugin-device”: “^1.1.7”,
“cordova-plugin-facebook4”: “^1.9.1”,
“cordova-plugin-file”: “^5.0.0”,
“cordova-plugin-file-transfer”: “^1.7.0”,
“cordova-plugin-geolocation”: “^2.4.3”,
“cordova-plugin-nativestorage”: “^2.2.2”,
“cordova-plugin-splashscreen”: “^4.1.0”,
“cordova-plugin-statusbar”: “^2.4.0”,
“cordova-plugin-telerik-imagepicker”: “git+https://github.com/Telerik-Verified-Plugins/ImagePicker.git”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-plugin-wkwebview-engine”: “git+https://github.com/ionic-team/cordova-plugin-wkwebview-engine.git”,
“cordova-plugin-x-socialsharing”: “^5.2.1”,
“cordova.plugins.diagnostic”: “^3.8.1”,
“cryptiles”: “^4.1.1”,
“es6-promise-plugin”: “^4.1.0”,
“firebase”: “^3.7.4”,
“firebase-admin”: “^5.12.0”,
“grpc”: “^1.10.1”,
“ionic-angular”: “3.3.0”,
“ionic-native”: “^2.2.0”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionic2-rating”: “^1.2.0”,
“ionicons”: “3.0.0”,
“ng2-charts”: “^1.6.0”,
“rxjs”: “5.1.1”,
“sw-toolbox”: “3.6.0”,
“untildify”: “^3.0.2”,
“zone.js”: “0.8.11”
},
“devDependencies”: {
@ionic/app-scripts”: “1.3.7”,
@ionic/cli-plugin-cordova”: “1.6.2”,
@ionic/cli-plugin-ionic-angular”: “1.4.1”,
“ionic”: “3.20.0”,
“typescript”: “2.3.3”
}
}