Which of the following console commands will update all installed global packages to the latest available versions? npm upgrade –g npm update –g npm install –uga npm version —install-latest code example
Example 1: npm update
npm install -g npm@latest
Example 2: npm update
npm update --save