So earlier I was using node version v13.6 bascially because I am on windows 7 and node.js supports only windows 7 till v13.6 . So what I did was I downloaded the node.js latest version(v14.x.x) in '.zip' package and replaced all the files in the nodejs folder with the newer version file. I also know how to set environment variable but how can I set NODE_SKIP_PLATFORM_CHECK to 1 from the system properties in order to bypass the and run the latest version of node.jsenter image description here?
Asked
Active
Viewed 1.0k times
7
-
Did you tried adding environment variable at the OS level and setting the value as one ?? – vikash vik May 28 '21 at 14:05
1 Answers
10
This work for me
Go to System-Properties (run: systempropertiesadvanced.exe), in Advanced tab, click Environment Variables.
Still on the System variables, click 'New', add "NODE_PATH" with value "C:\nodejs64\node_modules", and click OK.
click 'New' again, add "NODE_SKIP_PLATFORM_CHECK" with value "1", and click OK.
Click OK of all dialogs close.
Restart your machine, so explore and cmd will get the fresh set of variables.

Jacky Cheng
- 1,536
- 1
- 10
- 22

user251929Fdantas
- 196
- 3
- 8
-
Step 2 are 5 may not be needed, since the installation checks just the NODE_SKIP_PLATFORM_CHECK variable. Instead of restarting the machine, you can just close the command prompt and re-open it. – eloimondelo Aug 25 '23 at 09:21