node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Node gyp cannot find the msvs 2017 in the PC which installed multi-version of msvs.

Open Ray23210 opened this issue 2 years ago • 0 comments

  • Node Version:
  • node version v16.16.0. npm v8.11.0.
  • Platform:
  • Windows
  • Compiler:
  • msbuild
  • Module:

I tried to "set node-gyp configure --msvs_version=2017", and also tried add "msvs_version=2017" in project .npmrc but it still find vs2022 as its compiler.

Verbose output (from npm or node-gyp): ``` Paste your log here, between the backticks. It can be: - npm --verbose output, - or contents of npm-debug.log, - or output of node-gyp rebuild --verbose. Include the command you were trying to run.

This should look like this:

npm --verbose npm verb cli c:\ThirdPty\nodejs\node.exe c:\ThirdPty\nodejs\node_modules\npm\bin\npm-cli.js npm info using [email protected] npm info using [email protected] npm verb title npm install npm verb argv "install"

Usage: npm (...)


</details>
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.6.4 found at "C:\Program Files\Python36\python.exe"
gyp info find VS using VS2022 (17.2.32630.192) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\Professional"
gyp info find VS run with --verbose for detailed information


<!-- Any further details -->

Ray23210 avatar Sep 26 '22 09:09 Ray23210