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 3,982 times
3
-
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
4
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,461
- 1
- 10
- 20
user251929Fdantas
- 101
- 1
- 7