Using newer Node JS versions with Windows 7

Peter posted this on June 18, 2022

I know….

I still have a Windows 7 laptop I’ve refused to update at home.

I was working on this app and decided to continue on my old windows 7 computer at home.

After cloning the Git repo I realised Node JS was still at version 12 on the laptop.

When I tried to update, I got the error:

With a little research I was able to fix it.

Reading I was able to find a workaround.

Go to My Computer

At the top, click on System Properties

In system properties, click on the tab Advanced then Environment Variables as below:

Click New then add the following variables:

NODE_PATH with value: C:\nodejs64\node_modules

NODE_SKIP_PLATFORM_CHECK with value: 1

Save and restart your computer.

Node should be working now!

Post A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.