install a previous version of an npm package (NodeJS)
When we need to downgrade our package for using a stable version. We can follow this:
npm install <package>@<version>
If the version you are trying to install is not valid, terminal will show a bunch of valid version for you to choose.
npm install @email@example.com
Also, we can use
-S to add it to the package.json dependencies
npm install @firstname.lastname@example.org --save npm install -S @email@example.com