We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a67dcd commit 0bc6e67Copy full SHA for 0bc6e67
lib/find-visualstudio.js
@@ -127,6 +127,10 @@ VisualStudioFinder.prototype = {
127
findVisualStudio2017OrNewer: function findVisualStudio2017OrNewer (cb) {
128
var ps = path.join(process.env.SystemRoot, 'System32',
129
'WindowsPowerShell', 'v1.0', 'powershell.exe')
130
+ if (process.env.NODE_GYP_POWERSHELL_PATH) {
131
+ ps = path.resolve(process.env.NODE_GYP_POWERSHELL_PATH)
132
+ this.addLog('PowerShell path has been set by NODE_GYP_POWERSHELL_PATH:', ps)
133
+ }
134
var csFile = path.join(__dirname, 'Find-VisualStudio.cs')
135
var psArgs = [
136
'-ExecutionPolicy',
0 commit comments