How to downgrade Yeoman on linux using npm

97 Views Asked by At

How do I downgrade Yeoman? Version 5.0.0 seems, as of now, unstable and has issues with some generators. The suggested solution is to downgrade yeoman to version 4.3.1. How can I achieve this?

1

There are 1 best solutions below

1
HIMANSHU JHA On BEST ANSWER

We can't downgrade Yeoman directly; instead, we can uninstall then re-install the desired version.

For Linux:

sudo npm uninstall -g yo
sudo npm install -g yo@version

For Windows:

npm uninstall -g yo
npm install -g yo@version