Ionic package build FAILED


I was trying to package an ionic app and build it with on the ionic cloud. ionic serve and ionic build runs fine locally. I am not sure why is the package output giving me a npm error as though it’s pulling a public package of the app from npm. I don’t think there is a need for me to publish the module to npm for ionic package to work?

Can anyone help me with this.

$ ionic package build android --profile development
The resources folder already exists. We will not overwrite your files unless you pass the --force argument.
Running with the force flag will overwrite your resources directory and modify your config.xml file
Preparing your resources...
splash ios Default-Portrait@~ipadpro.png (2048x2732) skipped, source image splash.png (2208x2208) too small
splash ios Default-Landscape@~ipadpro.png (2732x2048) skipped, source image splash.png (2208x2208) too small
Uploading your project to Ionic...
Submitting your app to Ionic Package...
Your app has been successfully submitted to Ionic Package!
Build ID: 5
We are now packaging your app.

$ ionic package info
  id       │ 5
  status   │ FAILED
  platform │ android
  mode     │ debug
  started  │ Apr 5th, 2017 17:27:19


Error: Registry returned 404 for GET on<IONIC_APP_NAME>

Below is my ionic info:

$ ionic info
Your system information:

Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.2.5
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.1
Xcode version: Not installed

Did you somehow add your own app as a dependency in your package.json? Can you post your package.json?

Hi @Sujan12,

I’m pretty sure that’s not the case, unless ionic package is doing something for me that I am not aware of.

Here’s my package.json for your reference, Thanks

  "name": "myapp",
  "author": "nicholascph",
  "homepage": "",
  "config": {
    "ionic_copy": "./config/copy.config.js"
  "scripts": {
    "copy": "ionic-app-scripts copy",
    "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": "2.4.8",
    "@angular/compiler": "2.4.8",
    "@angular/compiler-cli": "2.4.8",
    "@angular/core": "2.4.8",
    "@angular/forms": "2.4.8",
    "@angular/http": "2.4.8",
    "@angular/platform-browser": "2.4.8",
    "@angular/platform-browser-dynamic": "2.4.8",
    "@angular/platform-server": "2.4.8",
    "@ionic-native/background-mode": "^3.4.4",
    "@ionic-native/badge": "^3.4.4",
    "@ionic-native/core": "3.1.0",
    "@ionic-native/facebook": "^3.4.4",
    "@ionic-native/geolocation": "^3.4.4",
    "@ionic-native/google-plus": "^3.4.4",
    "@ionic-native/keyboard": "^3.4.4",
    "@ionic-native/splash-screen": "^3.1.0",
    "@ionic-native/status-bar": "^3.4.4",
    "@ionic/cloud-angular": "^0.11.0",
    "@ionic/storage": "2.0.0",
    "async": "^2.2.0",
    "firebase": "^3.7.4",
    "ionic-angular": "2.3.0",
    "ionicons": "3.0.0",
    "moment": "^2.18.1",
    "rxjs": "5.0.1",
    "sw-toolbox": "3.4.0",
    "underscore": "^1.8.3",
    "uuid": "^3.0.1",
    "zone.js": "0.7.2"
  "devDependencies": {
    "@ionic/app-scripts": "1.2.5",
    "typescript": "2.0.9"
  "cordovaPlugins": [
    "cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=com.ionicframework.XXXX",
    "cordova-plugin-googleplus  plugin add cordova-plugin-facebook4 --variable APP_ID='XXXXX' --variable APP_NAME='XXXX'"
  "cordovaPlatforms": [],
  "description": "an app: An Ionic project"

This looks broken, doesn’t it?

Opps, it definitely looked broken. My bad, got the successful build after removing those 2 lines.
Cheers for pointing that out.

1 Like