NPM also known as NODE is world’s largest software registry library available on internet for developers. In MAC operating system we can easily update NPM using single command. Using this command we can update NPM on all MAC versions like Big Sur, Catalina, Mojave, High Sierra etc. It is recommended for React Native developers to upgrade the NPM package time to time. So in this tutorial we would learn about How to Upgrade NPM Node.js on MAC OS Latest Version Using Terminal Command.
Contents in this project How to Upgrade NPM Node.js on MAC OS Latest Version Using Terminal Command:
1. The first step is to open Terminal in your MAC Operating System and type below command.
1
|
npm install –g npm@latest
|
Screenshot:
2. Now hit Enter button and wait for few minutes to complete the upgrading process. After done upgrading NPM to latest version your terminal window should look like below screenshot.
here you go friends, Now you NPM Node is successfully updated .