Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade Node version

Tags:

node.js

I want to downgrade my Node version from the latest to v6.10.3.

But nothing worked so far. Tried NVM and it gives an error as well by saying make command is not found. How can I downgrade Node?

like image 859
Shashika Avatar asked Oct 30 '17 04:10

Shashika


People also ask

Can we downgrade node version?

Nodejs can be upgraded or downgraded using different methods some of them are by manually downloading the latest version of node from their official nodejs.org website and the second method is by using nvm which is really helpful in controlling the node version.

How do I revert to an older version of node?

To change Node. JS versions, we have to first download the version we want. Make sure you have nvm installed first. If you don't know the version you want to install, type nvm ls-remote to get a full list of all installable Node.

Can we downgrade npm version?

To conclude, the npm program you used to run commands is treated as a package that's installed globally. To downgrade it, you need to overwrite the installed version with the npm install -g npm@<version> command.


2 Answers

Warning: This answer does not support Windows OS

You can use n for node's version management. There is a simple intro for n.

$ npm install -g n $ n 6.10.3 

this is very easy to use.

then you can show your node version:

$ node -v v6.10.3 

For windows nvm is a well-received tool.

like image 59
aircraft Avatar answered Oct 03 '22 22:10

aircraft


For windows:

Steps

  1. Go to Control panel> program and features>Node.js then uninstall

  2. Go to website: https://nodejs.org/en/ and download the version and install.

like image 42
Dharmendra Singh Pokhariya Avatar answered Oct 03 '22 23:10

Dharmendra Singh Pokhariya