I’m running into trouble trying to install npm packages because of an error with VCBuild.exe when I run npm install steam
. The error indicates that it can’t find the Visual C++ component.
I’ve attempted several solutions, including installing dependencies like ursa and node-gyp, installing both Visual C++ 2005 and 2010, updating the PATH environment variable, and doing a lot of research online. While other npm modules install fine, this specific error persists.
I also encountered a similar error when running npm install ursa
.
Has anyone else experienced this issue and found a fix? Any help or suggestions would be really appreciated.
npm install example-package
> error: cannot find VCBuild.exe
Have you tried using windows-build-tools
? It’s a package that automates the installation of Visual C++ build tools and Python, which are often needed for native module compilation. You can install it globally with npm:
npm install --global windows-build-tools
Run this command in an admin PowerShell. It might take a while, but it should set up everything you need. After it’s done, restart your terminal and try npm install steam
again. This approach has worked for me in similar situations and might save you the hassle of manual installations.
I feel your pain, man. I’ve been there with those VCBuild.exe errors. They’re a real headache. Here’s what worked for me:
First, make sure you’ve got the latest Node.js installed. Sometimes, older versions can cause weird issues.
Then, try this command in an admin PowerShell:
npm install --global --production windows-build-tools
It takes a while, but it installs everything you need for native module compilation. After that, restart your computer (yeah, I know, but it helps).
If that doesn’t work, check your system’s PATH. Make sure it includes the path to the Visual Studio build tools. You might need to add something like:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64
Replace the version numbers with what you’ve got installed.
Hope this helps. Let us know if you get it sorted!
hey man, had the same issue. try installin the Visual Studio Build Tools. its way better than those old VC++ versions. just google ‘Microsoft Visual Studio Build Tools’ and download the latest. make sure to update ur PATH after installin. that usually fixes it for most ppl