Skip to content
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

Windows 11 SDK not recognized #158

Open
msojocs opened this issue Sep 7, 2023 · 0 comments
Open

Windows 11 SDK not recognized #158

msojocs opened this issue Sep 7, 2023 · 0 comments

Comments

@msojocs
Copy link

msojocs commented Sep 7, 2023

Log Debugger attached.

[email protected] build-nw D:\GitHub\napi-study
nw-gyp rebuild --debug --arch=x64 --target=0.54.1

Debugger attached.
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS running in VS Command Prompt, installation path is:
gyp ERR! find VS "D:\Program Files\Microsoft Visual Studio\2022\Professional"
gyp ERR! find VS - will only use this version
gyp ERR! find VS checking VS2022 (17.7.34024.191) found at:
gyp ERR! find VS "d:\Program Files\Microsoft Visual Studio\2022\Professional"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v143
gyp ERR! find VS - missing any Windows SDK
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! UNCAUGHT EXCEPTION

I found no win11 support when debugging.
image

node-gyp has code to support win11 sdk:
https://github.com/nodejs/node-gyp/blob/d3615c66f7e7a65de48ce9860b1fe13710d20988/lib/find-visualstudio.js#L324

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

No branches or pull requests

1 participant