Skip to content

Commit b7ca77f

Browse files
committed
Tweak error message
1 parent d3dc39b commit b7ca77f

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ Now, any time you `npm install` in your repo on Windows, if the MSVC runtime isn
1818
> ./bin.js
1919

2020
***********************
21-
The Microsoft Visual C++ Runtime is not installed, and is required to set up this project on Windows.
22-
Install it from https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist
21+
The Microsoft Visual C++ Runtime is not installed, and is
22+
required to set up this project on Windows.
23+
24+
Install it from:
25+
https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist
2326
***********************
2427

2528
npm ERR! code 1

bin.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ const { isMsvcRuntimeInstalled } = require('./check');
55
isMsvcRuntimeInstalled().then((installed) => {
66
if (process.platform !== 'win32') {
77
// We only check on Windows - not relevant elsewhere
8-
// process.exit(0);
8+
process.exit(0);
99
}
1010

1111
if (installed) {
1212
console.log('Visual C++ Redistributable is installed.');
1313
process.exit(0);
1414
} else {
1515
console.error(
16-
'\n***********************\n' +
17-
'The Microsoft Visual C++ Runtime is not installed, and is required to set up this project on Windows.\n' +
18-
'Install it from https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist\n' +
16+
'***********************\n' +
17+
'The Microsoft Visual C++ Runtime is not installed, and is\n' +
18+
'required to set up this project on Windows.\n\n' +
19+
'Install it from:\n' +
20+
'https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist\n' +
1921
'***********************\n'
2022
);
2123
process.exit(1);

0 commit comments

Comments
 (0)