When executing "npm install" for my node application, I suddenly started getting the error:
Could not load the Visual C++ component "VCBuild.exe"
I have narrowed it down to the following line in the package.json
file under dependencies
:
"better-sqlite3": "^4.1.4",
What do I need to do or install so that I can load better-sqlite3 with npm on this Windows 10 64-bit machine?
Addendum:
- I tried
npm install -g windows-build-tools
as administrator, but got the error:
Could not install Visual Studio Build Tools.
I have Visual Studio 2017 Community Edition installed on this computer.
I have npm version 6.4.1.
Interestingly, a similar error occurs during
npm install
on linux, which can be avoided by removing the"better-sqlite3": "^4.1.4"
line out of thepackage.json
file: