The problem that I am having is that I cant install the packages for a project, it keeps erroring with:
npm ERR! npm ERR! gyp ERR! find VS valid versions for msvs_version:
npm ERR! npm ERR! gyp ERR! find VS
npm ERR! npm ERR! gyp ERR! find VS **************************************************************
npm ERR! npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! npm ERR! gyp ERR! find VS **************************************************************
I have tried to follow advice from these threads that other people had:
But neither seemed to help.
What I have done so far:
I installed the latest VS Code (2022 Community) with
Desktop development with C++along withMSVC v143 - VS 2022 C++ x64/x86 build toolsI have configured
msvs_versionto have the value of2022, I did that withnpm config set msvs_version=2022and withnode-gyp configure --msvs_version=2022I have tried installing windows build tools
npm install --global --production windows-build-toolsbut it just says that...Node.js now incldues build tools for Windows...I have also manually built the node-gyp using the commands found in the second post I listed above
node-gyp configurenode-gyp configure --msvs_version=2022node-gyp buildand its all greens and oks
And I have no idea what else I can do






