Closed
Description
I'm using the latest node-gyp.
I've found that msvs_version
doesn't actually work from .npmrc
nor from environment variables.
Here's what happens.
- If you set
$env:npm_config_msvs_version=2019; node-gyp configure
, what happens is that thegyp.opts
containsmsvs-version
, but notmsvs_version
. This leads the configure command to assume that the env variable hasn't been set. - If you set
npm config set msvs_version 2019 --location project
, it also doesn't work, instead nothing is read at all, thegyp.opts
does not containmsvs_version
at all. - If you set
node-gyp configure --msvs_version=2019
then it does work, and it shows up ongyp.opts
.