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 tools
I have configured
msvs_version
to have the value of2022
, I did that withnpm config set msvs_version=2022
and withnode-gyp configure --msvs_version=2022
I have tried installing windows build tools
npm install --global --production windows-build-tools
but 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 configure
node-gyp configure --msvs_version=2022
node-gyp build
and its all greens and oks
And I have no idea what else I can do
npm install
and getting this error. I don't have C++ and I don't want it that I know of. My project is nodejs project in vscode. Why am I getting this error?