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

npm install winax error #3115

Closed
kyomic opened this issue Jan 2, 2025 · 2 comments
Closed

npm install winax error #3115

kyomic opened this issue Jan 2, 2025 · 2 comments

Comments

@kyomic
Copy link

kyomic commented Jan 2, 2025

npm install winax --msvs_version=2022

env:
nodejs v18.20.5 window 10 Python 3.11.6

report follow error:

npm error code 1
npm error path E:\git\work\excel\node_modules\winax
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp info find Python using Python version 3.11.6 found at "E:\Python\Python311\python.exe"
npm error gyp ERR! find VS
npm error gyp ERR! find VS msvs_version was set from command line or npm config
npm error gyp ERR! find VS - looking for Visual Studio version 2022
npm error gyp ERR! find VS running in VS Command Prompt, installation path is:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS - will only use this version
npm error gyp ERR! find VS checking VS2022 (17.12.3) found at:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS - found "Visual Studio C++ core features"
npm error gyp ERR! find VS - found VC++ toolset: v143
npm error gyp ERR! find VS - missing any Windows SDK
npm error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details.
npm error gyp ERR! find VS
npm error gyp ERR! find VS Failure details: undefined
npm error gyp ERR! find VS unsupported version "15.9.35431.46" found at "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm error gyp ERR! find VS checking VS2022 (17.12.35527.113) found at:
npm error gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm error gyp ERR! find VS - found "Visual Studio C++ core features"
npm error gyp ERR! find VS - missing any VC++ toolset
npm error gyp ERR! find VS checking VS2022 (17.12.35527.113) found at:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS - found "Visual Studio C++ core features"
npm error gyp ERR! find VS - missing any VC++ toolset
npm error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm error gyp ERR! find VS unsupported version "17.12.3" found at "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details.
npm error gyp ERR! find VS
npm error gyp ERR! find VS Failure details: undefined
npm error gyp ERR! find VS unsupported version "17.12.35527.113" found at "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm error gyp ERR! find VS unsupported version "17.12.35527.113" found at "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS checking VS2017 (15.9.35431.46) found at:
npm error gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm error gyp ERR! find VS - "Visual Studio C++ core features" missing
npm error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm error gyp ERR! find VS looking for Visual Studio 2015
npm error gyp ERR! find VS - not found
npm error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm error gyp ERR! find VS msvs_version does not match this VS Command Prompt or the
npm error gyp ERR! find VS installation cannot be used.
npm error gyp ERR! find VS
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS You need to install the latest version of Visual Studio
npm error gyp ERR! find VS including the "Desktop development with C++" workload.
npm error gyp ERR! find VS For more information consult the documentation at:
npm error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm error gyp ERR! stack at VisualStudioFinder.fail (E:\git\work\node_modules\node-gyp\lib\find-visualstudio.js:118:11)
npm error gyp ERR! stack at VisualStudioFinder.findVisualStudio (E:\git\work\node_modules\node-gyp\lib\find-visualstudio.js:74:17)
npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm error gyp ERR! stack at async createBuildDir (E:\git\work\node_modules\node-gyp\lib\configure.js:112:18)
npm error gyp ERR! stack at async run (E:\git\work\node_modules\node-gyp\bin\node-gyp.js:81:18)
npm error gyp ERR! System Windows_NT 10.0.19045
npm error gyp ERR! command "E:\\software\\nodejs\\node.exe" "E:\\git\\work\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm error gyp ERR! cwd E:\git\work\excel\node_modules\winax
npm error gyp ERR! node -v v18.20.5
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
@cclauss
Copy link
Contributor

cclauss commented Jan 2, 2025

npm error gyp ERR! find VS msvs_version was set from command line or npm config
npm error gyp ERR! find VS - looking for Visual Studio version 2022
npm error gyp ERR! find VS running in VS Command Prompt, installation path is:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS - will only use this version
npm error gyp ERR! find VS checking VS2022 (17.12.3) found at:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp ERR! find VS - found "Visual Studio C++ core features"
npm error gyp ERR! find VS - found VC++ toolset: v143
npm error gyp ERR! find VS - missing any Windows SDK

The last line seems a bit vague to me. Could that error message be edited to tell the user what additional packages need to be installed?

@cclauss
Copy link
Contributor

cclauss commented Jan 5, 2025

The GitHub Action tests are passing at https://github.com/durs/node-activex so please consider opening an issue on that repo.

@cclauss cclauss closed this as completed Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants