upgrading node version in a specific package code example
Example 1: use npm to update packages to latest version
npm i -g npm-check-updates
ncu -u
npm install
Example 2: npm update specific package
npm update browser-sync
-------
yarn upgrade browser-sync
Example 3: how to install specific package version npm
$ 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