-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR! UNCAUGHT EXCEPTION on Windows CI with VS2019 and node-sass #2089
Comments
Awesome. It is right and proper to upgrade from node-gyp@3.8.0 to node-gyp@6.1.0 for compatibility with both Python 3 and VS2019. From https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md we can see that #1762 landed in v5.0.0. |
#1753 (comment) @jrr Can we close? |
@cclauss before closing I'd like to explore making things better for those that follow. Ideally, it'd be great if when you install an old version of node-gyp, it could print some kind of post-install warning about compiler compatibility. I'm not sure whether it's possible to add that to an already-published package without publishing a new version, though. At minimum, perhaps we could put a big compiler compatibility table at the top of the Readme? |
Your review please on #2096 |
I ran into the same problem. |
#2096 landed so I think this is good to close. |
Template
yarn why node-gyp
indicates thatnode-sass
depends on it.)Verbose output from
yarn install --frozen-lockfile --verbose
is attached instead of inlined because it's 23MB: gyp-error.txtSymptom
During
yarn install --frozen-lockfile --verbose
, I'm seeing the following error (this is an excerpt from the full log above):Details
I'm using Azure Pipeline's
windows-latest
Windows Agent, which I believe is the same environment that's used for Github Actions.One thing that catches my eye in the log is some ambiguity about which version of Visual Studio is detected / expected. I see
find vs2017
picking up VS2019, and then gyp_main.py invoked with 'msvs_version=2015':Potential workaround
From googling around, it looks VS2019 support arrived in node-gyp 5, but I'm on 3.8.0.
I've set a yarn resolution forcing
node-gyp@6.1.0
, and after a couple green builds I'm cautiously optimistic that I've resolved the issue.Questions
The text was updated successfully, but these errors were encountered: