Skip to content

fix: configure for msvs 2015#164

Open
christianchown wants to merge 1 commit intonwjs:node-gyp-3.6.2from
christianchown:fix/configure-msvs-2015
Open

fix: configure for msvs 2015#164
christianchown wants to merge 1 commit intonwjs:node-gyp-3.6.2from
christianchown:fix/configure-msvs-2015

Conversation

@christianchown
Copy link
Copy Markdown

966ca06 added support for VS 2017/2019, but introduced an error for VS 2015. createConfigFile is called without a vsInfo for 2015, causing

> nw-gyp configure --msvs_version=2015
...
gyp verb build/config.gypi creating config file
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot read property 'versionYear' of undefined

Fix is to only modify the env for windows if vsInfo is supplied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant