I’m new at Ionic, I’m trying to deploy a very small app at ionicjs.com but I’m getting the following error after pushing any commit:
Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on IonicJS Runner 2 (7981969b)
Using Shell executor...
Running on ip-10-2-50-250...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/7981969b/0/project-1'...
Checking out 545bdedc as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running: npm install
npm WARN Invalid version: "1.0"
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.
added 55 packages in 4.188s
npm install succeeded
Running: 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 ERR! Invalid version: "1.0"
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitlab-runner/.npm/_logs/2017-09-27T14_07_27_193Z-debug.log
/snapshot.sh: line 32: [: missing `]'
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
The file is not in the project folder, I searched for it in through the folders and through the code. It appears to be in the environment that builds the binaries.
Hey folks, looking at the error, it could be related to a bad version in your package.json. Open your package.json and make sure the version entry is x.x.x and not just x.x, so 1.0.0 instead of 1.0
I had to fix some additional issues with packages (unrelated to original error) and now everything is working! Simply adding the version fixed my issues!