how to downgrade version of npm code example
Example 1: revert npm version
npm install -g [email protected]
Example 2: downgrade npm package to specific version
npm install -g npm@version-no
Example 3: npm downgrade package
npm view <package> versions // lets see what versions of package are available
npm install <package>@<version> // install desired version. Remember about flags which maybe you want to use (eg. -g for global)
// example for package 'express'
npm install [email protected]