Ionic package error


I have an existing ionic app I’ve been developing locally, which I now want to start using with Ionic Cloud (for build/packaging and push notifications). I created the app in my ionic account, but I’m having trouble from the CLI.

Below is the command and error I’m getting. I tried from my macbook, and got the same error. Perhaps a syntax in one of my local files? I’ve already tried npm uninstall/install of ionic, with no change.

C:\aba\abapi>ionic package build android --profile abapi_dev
An error occurred uploading the build: SyntaxError: Unexpected token <

SyntaxError: Unexpected token <
    at Object.parse (native)
    at IncomingMessage.<anonymous> (C:\Users\MYUSER\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:301:25)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:921:12)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)

Unexpected token < (CLI v2.1.12)

I also tried this, and got the following error:

C:\aba\abapi>ionic package list

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
    <meta name="keywords" content="html5,javascript,mobile,drifty,ionic,hybrid,phonegap,cordova,native,ios,android,angularjs">
    <meta name="author" content="Drifty">
    <meta property="og:image" content=""/>

    <link rel="shortcut icon" href="">

    <title>404 Not Found! - the hybrid app platform.</title>
    <script src="//"></script>

      <script src=""></script>
      <script src=""></script>
      <script src=""></script>
      <script src=""></script>
      <script src=""></script>
      <script src="//"></script>
      <script type="text/javascript" src="//"></script>

    <link rel="stylesheet" href="" type="text/css" media="screen" />


  <body class="body-default" ng-app="projects">

        <header class="clearfix navbar header-dash">

          <div class="navbar-header">
            <button type="button"
                    class="navbar-toggle collapsed"
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            <a class="navbar-brand" href="/">
              <img src="" class="logo">

          <div class="search" ng-controller="SearchCtrl">
            <div class="form-group" ng-class="{active: searchFocused}">
              <input id="header-search"
                     placeholder="Search my apps"
                     ng-focus="searchFocused = true; active = -1; showable = true"
                     ng-blur="searchFocused = false; showable = false">

              <ul id="search-results"
                  ng-class="{shown: searchQuery.length && showable }">
                <li ng-repeat="result in searchResults">
                  <a ng-href="/app/{{result.app_id}}"
                     ng-class="{active: active == $index}">
                    <div class="app-icon">
                      <img ng-src="/icon/{{result.app_id}}" />
                      <div class="mask"></div>
                    <strong ng-bind=""></strong>
                    <span ng-bind="result.app_id"></span>


          <ul class="nav navbar-nav navbar-right">

            <li ><a href="/apps"
            <li><a href="">Docs</a></li>
            <li><a target="_blank" href="">Support</a></li>
              <a class="avatar-container" data-toggle="dropdown">
                <img class="avatar"
              <ul class="dropdown-menu">
                <li class="user">
                  <img class="avatar"
                  <div class="name">Randy Brown</div>
                  <div class="username">abaadmin</div>
                <li class="settings"><a href="/settings">Account Settings</a></li>
                <li class="notifications"><a href="/settings/email">
                <li class="logout"><a href="/logout">Log out</a></li>

<img src="" style="max-width: 800px">

<h2>404: Not in this universe.</h2>
Your request was received. Unfortunately, we cannot locate that resource in the
current universe.


    <!-- Latest compiled and minified JavaScript -->
    <script src="//"></script>
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      ga('create', 'UA-44023830-22', 'auto');
      ga('send', 'pageview');

      <script type="text/javascript" src=""></script>
        angular.module('projects').constant('CSRF_TOKEN', 'zx5UQ9s8xsxyukKnk56KjiJtdodVFjTc');


Error in package service. (CLI v2.1.12)

Your system information:

 ordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.42
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v4.4.7
Xcode version: Not installed


I was able to get past this by setting the app_id to an empty string in my ionic.config.json file:

 "name": "MyIonic2Project", 
"app_id": "", 
"v2": true, 
"typescript": true 

Then the ionic cloud commands started working

"SyntaxError: Unexpected end of input" when building with Ionic Cloud