update an npm package to latest version code example
Example 1: upgrade npm version
npm install -g npm@latest
Example 2: npm update to latest
npm i -g npm@latest
Example 3: npm update syntax
npm outdated
npm install -g npm@latest
npm i -g npm@latest
npm outdated