Skip to content

An npm package to easily show a warning if the Microsoft Visual C++ Redistributable is not installed on Windows

License

Notifications You must be signed in to change notification settings

httptoolkit/check-msvc-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check-MSVC-Runtime

Part of HTTP Toolkit: powerful tools for building, testing & debugging HTTP

An npm package to easily show a warning if the Microsoft Visual C++ (MSVC) Redistributable is not installed on Windows.

Many Windows binaries won't run without the MSVC runtime installed, so this can cause problems, but those applications often don't provide a clear error. This makes it easy to end up with a hard-to-set up npm project. To handle that, this package makes it easy to cleanly detect and warn whenever this happens, so developers can easily resolve it themselves.

To use this:

  • npm install check-msvc-runtime
  • Add "preinstall": "check-msvc-runtime" to your package.json scripts

Now, any time you npm install in your repo on Windows, if the MSVC runtime isn't installed it'll fail and show:

> check-msvc-runtime@0.0.0 preinstall
> ./bin.js

***********************
The Microsoft Visual C++ Runtime is not installed, and is
required to set up this project on Windows.

Install it from:
https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist
***********************

npm ERR! code 1
npm ERR! path .../check-msvc-runtime
npm ERR! command failed

About

An npm package to easily show a warning if the Microsoft Visual C++ Redistributable is not installed on Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published