Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14525bf

Browse files
committed
fix: update find-visualstudio to remove support for VS2015
feat: remove support for VS2015 in Node.js >=19 (#2746) nodejs/node-gyp@131d1a4
1 parent 6eb7ea3 commit 14525bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/import/find-visualstudio.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,12 @@ VisualStudioFinder.prototype = {
341341
},
342342

343343
// Find an installation of Visual Studio 2015 to use
344-
findVisualStudio2015: function findVisualStudio2015 (cb) {
344+
findVisualStudio2015: function findVisualStudio2015(cb) {
345+
if (this.nodeSemver.major >= 19) {
346+
this.addLog(
347+
'not looking for VS2015 as it is only supported up to Node.js 18')
348+
return cb(null)
349+
}
345350
return this.findOldVS({
346351
version: '14.0',
347352
versionMajor: 14,

0 commit comments

Comments
 (0)