npm install -g npm@15.0.0
$ npm i packageName@1.2.3
nvm install v14.16.0
//To install a specific version of npm locally for your project
$ npm install npm@version //replace version with the npm version you want to install
//To install globally
$ npm install -g npm@version //replace version with the npm version you want to install
$ 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
nvm install v10.15 //v10.15 is a version i want.
npm i yourPackage@version
Example:
npm i ngx-owl-carousel-o@7.0.4
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash