DEV Community

Darshan Raval
Darshan Raval

Posted on

Install Particular Version of Package - NPM

We all know normally Install npm package like this.
$ npm install express

  • express@4.17.1 added 50 packages from 37 contributors and audited 126 packages in 3.262s found 0 vulnerabilities This method install a newer version or latest version of that package. But if we want to install particular version of package then follow it. Synax: npm install [package]@[version]

$ npm install express@4.16.1

  • express@4.16.1 added 48 packages from 36 contributors and audited 121 packages in 2.986s found 0 vulnerabilities

Top comments (2)

Collapse
 
ayushh profile image
Ayush Sharma

Very useful

Collapse
 
darshanraval profile image
Darshan Raval

Thanks 😊