Update to latest version of Node.js in mac
If you are using node.js and what to update your framework to a newer stable version follow the steps below
1. Open the terminal
2. Check the node version
Click here to see how to check the node version
3. Type the following command
4. Type the password if prompted as we are using sudo command
5. After that you will get like this below
It indicates the cache has been cleared
5.
Checking for new version.
You may use the command suggested or follow the procedure to update to the newest stable version
6.
7. Check for the node version
Thats all to update into the new version of the Node.js in mac. If any help or suggestion comment your opinion below.
Thank you.
1. Open the terminal
Open Terminal |
Terminal Window |
2. Check the node version
Click here to see how to check the node version
3. Type the following command
sudo npm cache clean -f
(force) clear you npm cacheclearing npm cache |
4. Type the password if prompted as we are using sudo command
Password Prompt |
5. After that you will get like this below
It indicates the cache has been cleared
5.
sudo npm install -g n
install "n" (this might take a while)Checking for new version.
You may use the command suggested or follow the procedure to update to the newest stable version
6.
sudo n stable
upgrade to lastest version7. Check for the node version
Thats all to update into the new version of the Node.js in mac. If any help or suggestion comment your opinion below.
Thank you.
Comments
Post a Comment