Steps to Install Node JS in MacBook

Steps to Install Node JS in MacBook

Steps to Install Node JS in MacBook
Download the nvm install script via cURL, and install the NVM package with the below command.curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
Check NVM is installed successfully and which version of NVM using the below command.
nvm –version

 

Install the latest version of Node Js with the below command.

nvm install node Use the latest version of Node JSnvm use nodeInstall the latest LTS version of Node JSnvm install –lts Use the latest LTS version of Node JSnvm use –lts Install the v10.17.0 version of Node JSnvm install v10.17.0Use the  v10.17.0 version of Node JSnvm use  v10.17.0

Run app.js using node v0.10.32 

nvm run 0.10.32 app.js

Set the default node version on a shell  

nvm alias default 0.10.32

Uninstall NVM

To remove, delete, or uninstall nvm – just remove the `$NVM_DIR` folder (usually `~/.nvm`)

Post Tags :

Leave a Reply

X