Hello everyone -
I am relatively new to Ionic and I am hoping to use Ionic Pro to send out my first app for proof of concept. My app builds fine locally, however, when I upload to Ionic Pro, it is generating the exception below. Is there a way to debug or view the log file?
> Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
> on Snapshot Builds (c9648220)
> Using Shell executor...
> Running on ip-10-2-215-6...
> Cloning repository...
> Cloning into '/home/gitlab-runner/builds/c9648220/0/project-1'...
> Checking out acd4ff97 as master...
> Skipping Git submodules setup
> $ run "fetch-updates"
> Running Job: 5159386
> Checking for build process updates...
> $ run "build-app"
> Running Job: 5159386
> Attempting to restore cached packages...
> No cache found for packages, installing...
> $ npm install --quiet --no-optional
>
> > node-sass@4.5.3 install /usr/src/app/node_modules/node-sass
> > node scripts/install.js
>
> Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/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.5.3/linux-x64-57_binding.node
>
> > uglifyjs-webpack-plugin@0.4.6 postinstall /usr/src/app/node_modules/uglifyjs-webpack-plugin
> > node lib/post_install.js
>
>
> > node-sass@4.5.3 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
> added 864 packages in 27.438s
> Saving package cache...
> Package cache saved!
> $ npm run build
> npm info it worked if it ends with ok
> npm info using npm@5.3.0
> npm info using node@v8.2.1
> npm info lifecycle LCIMobileApp@0.0.1~prebuild: LCIMobileApp@0.0.1
> npm info lifecycle LCIMobileApp@0.0.1~build: LCIMobileApp@0.0.1
>
> > LCIMobileApp@0.0.1 build /usr/src/app
> > ionic-app-scripts build
>
> module.js:487
> throw err;
> ^
>
> Error: Cannot find module 'normalize-range'
> at Function.Module._resolveFilename (module.js:485:15)
> at Function.Module._load (module.js:437:25)
> at Module.require (module.js:513:17)
> at require (internal/module.js:11:18)
> at Object. (/usr/src/app/node_modules/autoprefixer/lib/hacks/gradient.js:14:13)
> at Module._compile (module.js:569:30)
> at Object.Module._extensions..js (module.js:580:10)
> at Module.load (module.js:503:32)
> at tryModuleLoad (module.js:466:12)
> at Function.Module._load (module.js:458:3)
> npm info lifecycle LCIMobileApp@0.0.1~build: Failed to exec build script
> npm ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! LCIMobileApp@0.0.1 build: `ionic-app-scripts build`
> npm ERR! Exit status 1
> npm ERR!
> npm ERR! Failed at the LCIMobileApp@0.0.1 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-12-09T15_07_53_438Z-debug.log
> npm run build failed
> Running after script...
> $ run "clean-up"
> Running Job: 5159386
> ERROR: Job failed: exit status 1