Getting error while login via CLI

Hi Cli Team,

I am able login from web while unable to login from cli mode.

See the CLI error details

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

D:\ionic_project\md-holidays>ionic login
Log into your Ionic account
If you don’t have one yet, create yours by running: ionic signup

? Email:

? Password: [hidden]
Request: POST
Response: 404
{ link: null,
type: ‘NotFound’,
message: ‘No user found by that email’ }

D:\ionic_project\md-holidays>ionic info

cli packages: (C:\Users\jhili\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.1


Node : v6.11.3
npm  : 3.10.10
OS   : Windows 7


backend : legacy


I am able to login from web.
When i click on login link in, it redirecting me to then after entering email and password i can login there.

Plz let me know what i have to do for login access for CLI.

I’m receiving similar 404 errors back from the API on legacy commands. I’ve created a support request with Ionic here:

It might be useful to do the same.

@chris_hunt, the URL requested here indicated your project is using the new backend!? Or maybe Ionic is migrating something so the URL changed?

Oh interesting. We’ve avoided migrating to the new Pro platform for the time being, so that is unexpected. Would @ionic/app-scripts be the package making this API request?

No, that would be @ionic/cli I think. But as it clearly says “retrieving package builds” which means you ran some ionic package command (which the pro backend doesn’t support at all) this is even more confusing. No idea what is going on here.

Ok, well that at least gives me hope that this is an issue on Ionic’s side. I’ll report back once I get a response on my ticket. Thanks.

It turns out that my issue was related to the version of @ionic/app-scripts I was running. I have upgraded via “npm install @ionic/app-scripts@latest --save” and the legacy command “ionic upload --deploy staging --prod” is working again.

1 Like