update npm on MacOS

Using NPM:

To update Node using NPM, do the following:

  1. Open the Terminal and check your current Node version:  
    node -v 
  2. Install n package using the following command:
    npm install -g n   
    This command will install a tool called „n“ which you can use to update Node easily.
  3. To update Node, run the following command in your terminal:           
    n latest
    This command will install the latest version of Node on your system.
  4. Now you can verify that your update is complete by rechecking your Node version:  
    node -v

You can also manually download and install the latest Node version from the official website.


Beitrag veröffentlicht

in

von

Schlagwörter:

Wir benutzen Cookies um die Nutzerfreundlichkeit der Webseite zu verbessen. Durch Deinen Besuch stimmst Du dem zu.