Can You Downgrade Package Npm Code Example


Example 1: install exact version npm

npm install <package>@<version>  //example npm install express@3.0.0

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 express@4.17.1

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable