install exact version npm
npm install <package>@<version>
//example
npm install [email protected]
install exact version npm
npm install <package>@<version>
//example
npm install [email protected]
npm install specific version
$ npm i [email protected]
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
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"
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us