-
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
Windows: VisualStudioFinder.fail on Node.js v23.6.1 #3123
Comments
Thanks for reporting this. Based on the issue content, I'd say this is not directly Node.js related, and node-gyp is where this issue should be open, Please close this issue and open it again in that repository (potentially with a more meaningful title). Thanks in advance. |
As discussed at https://github.com/nodejs/node-gyp?tab=readme-ov-file#installation please try again after running: |
Thanks for transferring it. Anyway, my comment followed the same lines as Clauss's. Visual Studio is missing and should be installed as it's missing. |
Chocolatey v2.3.0 You may experience errors - many functions/packages For the question below, you have 20 seconds to make a selection. Do you want to continue?([Y]es/[N]o): y Installing the following packages: Chocolatey installed 0/1 packages. 1 packages failed. Failures
|
alright but if you can solve it here? |
Yep, now it's been moved to the correct repository. So based on your log there was an issue installing Visual Studio via Chocolatey. If you want, you can open a separate issue for them. You can also install Visual Studio manually as described in this doc and the process should be fairly straightforward. |
i reinstalled chocolatey and it's working now |
Can this issue be closed? |
idk as its still have some problems but... |
What problems does it still have? |
most of time it's giving me list of errors on npm install package.. also I updated it to latest version 23.7.0 but I haven't tried it yet. |
Since the original issue is fixed, I'd suggest closing the issue and potentially opening new ones for the new issue encountered. |
Version
23.6.1 (latest)
Platform
Subsystem
windows
What steps will reproduce the bug?
npm install package (for example sharp,isolated-vm) and e.t.c
How often does it reproduce? Is there a required condition?
almost everytime 99%
What is the expected behavior? Why is that the expected behavior?
should install package
What do you see instead?
npm error code 1
npm error path C:\Users\user\node_modules\isolated-vm
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean)
npm error prebuild-install warn install No prebuilt binaries found (target=23.6.1 runtime=node arch=x64 libc= platform=win32)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.0.0
npm error gyp info using node@23.6.1 | win32 | x64
npm error gyp info find Python using Python version 3.13.1 found at "C:\Users\user\AppData\Local\Programs\Python\Python313\python3.13t.exe"
npm error gyp http GET https://nodejs.org/download/release/v23.6.1/node-v23.6.1-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v23.6.1/node-v23.6.1-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v23.6.1/SHASUMS256.txt
npm error gyp http GET https://nodejs.org/download/release/v23.6.1/win-x64/node.lib
npm error gyp http 200 https://nodejs.org/download/release/v23.6.1/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v23.6.1/win-x64/node.lib
npm error gyp ERR! find VS
npm error gyp ERR! find VS msvs_version not set from command line or npm config
npm error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
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 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 not looking for VS2017 as it is only supported up to Node.js 21
npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21
npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21
npm error gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18
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
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 (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:118:11)
npm error gyp ERR! stack at VisualStudioFinder.findVisualStudio (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:17)
npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
npm error gyp ERR! stack at async createBuildDir (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:112:18)
npm error gyp ERR! stack at async run (C:\Users\user\AppData\Roaming\npm\node_modules\npm\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 "C:\Program Files\nodejs\node.exe" "C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release" "-j" "max"
npm error gyp ERR! cwd C:\Users\user\node_modules\isolated-vm
npm error gyp ERR! node -v v23.6.1
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache_logs\2025-01-29T18_55_21_872Z-debug-0.log
Additional information
its happening since i updated my node version
The text was updated successfully, but these errors were encountered: