$ npm i packageName@1.2.3
//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
npm i yourPackage@version
Example:
npm i ngx-owl-carousel-o@7.0.4