Downgrading is not easy due to the fact that older installers are removed when a new alpha is up. In this guide, I am going to show how to downgrade nodejs on windows10.
Why?
Some packages require a specific versions range of nodejs and npm. for example, version 5 of React-native doesn’t work with npm5.
Steps
- Delete the current nodejs version (Or delete the relevant nodejs parameters path from the Environment variables as shown in step 6 and 7).
- Visit all the nodejs available versions:
https://nodejs.org/dist/
- Select the version you need. for this guide, i am selecting
v7.9.0/
- Select the windows architecture you need. I selected
x86
:node-v7.9.0-win-x86.zip
- Extract the zip file and place it on a permanent folder. for example:
c:\nodejs-v7.9.0
- Update windows variables: Press Start button >Write Environment and then select the next option:
- In the popped up window, Select Environment Variables
- In the popped up window, Edit the Path parameter under User variables for [username] and under System Variables add the path:
c:\nodejs-v7.9.0
- Restart the shell you are working on for the environment parameters to be reloaded
Thank you. this works as expected
LikeLike