I'm just learning nodejs on windows. In my case i tried all the above: What fixed my issue was:
Gyp Rosetti The Godfather Video Game Wiki Fandom
Following this atricle and it wasnt enough. Downgrading node.js from version 16.13.2 to version 16.13.0. The problem that i am having is that i cant install the packages for a project, it keeps erroring with:
In my case, i was using an old version of the prebuild library which depended.
I've tried many guides online but i feel like i am playing a guessing game. Too old, upgrade to sass which will avoid the gyp issue. Verify if you have vs build tools by running npm config get msvs_version (if you have, skip to step 4 and attempt. If you're using prebuild, update it to v12.0.0.
Find vs valid versions for msvs_version: