Ionic Pro: npm run build failed

I have an existing app already in my git repository (BitBucket). It runs fine locally.

I created a new app in the dashboard
I ran this

ionic link --pro-id xxxxxxx
git push ionic master

In the build log it says

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on Snapshot 3 (40d3ddff)
Using Shell executor...
Running on ip-10-2-152-170...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/40d3ddff/0/project-1'...
Checking out 77d33728 as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running: npm install
npm WARN Invalid name: "MyAppName"
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.791s
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 name: "MyAppName"

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitlab-runner/.npm/_logs/2017-09-13T03_10_45_902Z-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

Thank you for your help

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with. There is a FAQ and common/known issues at https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues You can - and should - contact support at Support

That is a bit strange. Do you get the same when you npm install locally on a checkout of that project?

Also post your ionic info output please.

The problem was with my package.json. “name” had a space in it like My App Name i changed it on this thread not to review my true project name. It build now just fine, Thank you.

1 Like

Oh interesting, I also didn’t know that.