Skip to content

Commit 770ab72

Browse files
committed
msvs_version is no longer a valid npm config setting
Remove misleading warnings. % `npm config list -l | grep msvs` % `npm config set msvs_version=2025` > npm error `msvs_version` is not a valid npm option
1 parent ee9cbdd commit 770ab72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/find-visualstudio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class VisualStudioFinder {
3030
this.configVersionYear = null
3131
this.configPath = null
3232
if (this.configMsvsVersion) {
33-
this.addLog('msvs_version was set from command line or npm config')
33+
this.addLog(`--msvs_version=${this.configMsvsVersion} was set on the command line`)
3434
if (this.configMsvsVersion.match(/^\d{4}$/)) {
3535
this.configVersionYear = parseInt(this.configMsvsVersion, 10)
3636
this.addLog(
@@ -41,7 +41,7 @@ class VisualStudioFinder {
4141
`- looking for Visual Studio installed in "${this.configPath}"`)
4242
}
4343
} else {
44-
this.addLog('msvs_version not set from command line or npm config')
44+
this.addLog('--msvs_version was not set on the command line')
4545
}
4646

4747
if (process.env.VCINSTALLDIR) {

0 commit comments

Comments
 (0)