Ionic can't login Request: POST https://api.ionic.io/login No user found by that email

左心房为你撑大大i 提交于 2019-11-30 06:18:43

This error is due to the fact that Ionic are transitioning to "Ionic Pro" and the CLI needs to use the correct API. The fact that it is attempting to post login requests to api.ionic.io/login shows it's trying to use the old legacy system. You configure which system it uses by setting the backend value in the config.

To Fix:

Firstly, make sure your Ionic CLI is bang up-to-date.

Check the version:

ionic cli -v

It should be 3.9.2 at time of writing. If not update it:

npm install -g ionic@latest 

Now you've got the latest CLI you need to tell it to use "pro" not legacy:

ionic config set backend pro -g

NOTE: When I did this on my machine it did not work at first and I still got the same "No user found" error. I actually had to switch the backend to "legacy" first (using that same command) and then back to "pro". I have no idea why this fixed it but it did.

Assuming you have already installed git in windows...

1) Control Panel > System > Edit the system variables

2) System Properties > Advanced (Tab) > Environment Variables (Bottom of tab)

3) System Variables > New

Variable Name: ssh-keygen

Variable Value C:\Program Files\Git\git-cmd

Click ok

4) Close and restart you CMD/Shell Window

4) in the CMD window type ionic login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!