Answers for "npm install with version"

11

npm check package version

local packages:
~$ npm list

globally installed packages:
~$ npm list -g

specific package:
~$ npm list <package>
Posted by: Guest on March-29-2020
6

install exact version npm

npm install <package>@<version>

//example
npm install [email protected]
Posted by: Guest on July-03-2020
2

npm install version

npm i -g npm@version_number
Posted by: Guest on August-01-2021
9

how to install specific package version npm

$ npm install [email protected]

+ [email protected]
added 48 packages from 36 contributors and audited 121 packages in 2.986s
found 0 vulnerabilities
Posted by: Guest on June-17-2020
0

how to install latest version of npm package

//For global packages 
npm i -g <package name>@latest
npm i -g express@latest

//For loacal packages
npm outdated
npm update

//Manually updating local packages
npm i <package name>@latest
npm update "react" "react-dom"
Posted by: Guest on September-23-2020
2

install node modules

// Install as a dependency
npm install --save packageName
// OR
npm install --save package1 package2
// OR
npm install --save package@version
// OR
npm i -s packageName

// Install as a dev-dependency
npm install --save-dev package@version
// OR
npm i -D packageName

//Install globally
npm install --global packageName
//OR
npm i -g packageName

// You might need SU access on macos/linux to install globally
Posted by: Guest on May-01-2020

Code answers related to "npm install with version"

Browse Popular Code Answers by Language