How can i downgrade my ionic cli to the previous version, I had?

孤人 提交于 2019-11-29 18:30:04

问题


The recent version is 3.2.0 and i'm facing lot's of issues with it like the ionic serve command not working.


回答1:


npm install -g ionic@version_number

ex: if you want to install ionic 2.5.0,

npm install -g ionic@2.5.0

edit: to list all versions of ionic, npm info ionic




回答2:


You can downgrade to your old version by running below command:

npm install -g ionic@3.9.2

Get your version here

IONIC CLI VERSIONS




回答3:


You may try uninstalling it first: npm uninstall -g ionic then install it again with the version that you want to install npm install -g ionic@x.x.x

then check ionic version with ionic --version you may need to restart your terminal to get the latest version running




回答4:


You just need to do like this:

npm install -g ionic@3.1.0

Changelog




回答5:


First thing first, uninstall the current version:

    npm uninstall -g ionic

then, install the version you want :

   npm install -g ionic@"the version for example @3.20.0"


来源:https://stackoverflow.com/questions/44152737/how-can-i-downgrade-my-ionic-cli-to-the-previous-version-i-had

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