Answers for "npm updgrade packages"

7

how to update my package.json

npm install -g npm-check-updates
/after install run following:
ncu -u

//Then this:
npm update
Posted by: Guest on October-09-2020
4

npm downgrade package

npm view <package> versions // lets see what versions of package are available
npm install <package>@<version> // install desired version. Remember about flags which maybe you want to use (eg. -g for global)

// example for package 'express'
npm install [email protected]
Posted by: Guest on November-10-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language