Skip to content

Visual Studio 2026 Support #3214

Closed
Closed

Description

@shmuelie

When trying to work on VS Code I discovered that node-gyp doesn't support Visual Studio 2026

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 running in VS Command Prompt, installation path is:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2026\Preview"
npm error gyp ERR! find VS - will only use this version
npm error gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2026\Preview"
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 unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2026\Preview"
npm error gyp ERR! find VS checking VS2022 (17.14.36510.44) found at:
npm error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Preview"
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 - found Windows SDK: 10.0.26100.0
npm error gyp ERR! find VS - does not match this Visual Studio Command Prompt
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 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

Activity

  1. zhangzong1314 commented on Sep 23, 2025

    @zhangzong1314

    m error gyp sill find VS at async VisualStudioFinder.findVisualStudio (E:\git\lyswhut\lx-music-desktop\node_modules@electron\node-gyp\lib\find-visualstudio.js:68:20)
    npm error gyp sill find VS at async createBuildDir (E:\git\lyswhut\lx-music-desktop\node_modules@electron\node-gyp\lib\configure.js:112:18)
    npm error gyp sill find VS at async run (E:\git\lyswhut\lx-music-desktop\node_modules@electron\node-gyp\bin\node-gyp.js:81:18)
    npm error gyp verb 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 verb find VS
    npm error gyp verb find VS Failure details: undefined
    npm error gyp verb find VS not looking for VS2017 as it is only supported up to Node.js 21
    npm error gyp verb find VS not looking for VS2017 as it is only supported up to Node.js 21
    npm error gyp verb find VS not looking for VS2017 as it is only supported up to Node.js 21
    npm error gyp verb find VS not looking for VS2015 as it is only supported up to Node.js 18
    npm error gyp verb 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 msvs_version not set from command line or npm config
    npm error gyp ERR! find VS running in VS Command Prompt, installation path is:
    npm error gyp ERR! find VS "D:\software\Visual Studio\IDE"
    npm error gyp ERR! find VS - will only use this version
    npm error gyp ERR! find VS unknown version "undefined" found at "D:\software\Visual Studio\IDE"
    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 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 (E:\git\lyswhut\lx-music-desktop\node_modules@electron\node-gyp\lib\find-visualstudio.js:118:11)
    npm error gyp ERR! stack at VisualStudioFinder.findVisualStudio (E:\git\lyswhut\lx-music-desktop\node_modules@electron\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 (E:\git\lyswhut\lx-music-desktop\node_modules@electron\node-gyp\lib\configure.js:112:18)
    npm error gyp ERR! stack at async run (E:\git\lyswhut\lx-music-desktop\node_modules@electron\node-gyp\bin\node-gyp.js:81:18)
    npm error gyp ERR! System Windows_NT 10.0.19044
    npm error gyp ERR! command "D:\software\nodejs\node.exe" "E:\git\lyswhut\lx-music-desktop\node_modules\@electron\node-gyp\bin\node-gyp.js" "rebuild" "--release"
    npm error gyp ERR! cwd E:\git\lyswhut\lx-music-desktop\node_modules\better-sqlite3
    npm error gyp ERR! node -v v22.11.0
    npm error gyp ERR! node-gyp -v v10.2.0-electron.1
    npm error gyp ERR! not ok
    npm error A complete log of this run can be found in: C:\Users\asus\AppData\Local\npm-cache_logs\2025-09-23T11_02_45_276Z-debug-0.log

  2. cclauss commented on Sep 23, 2025

    @cclauss
    Contributor

    wrong-repo?

    npm error gyp ERR! node-gyp -v v10.2.0-electron.1

    v10.2.0-electron.1 not a release from this repo:

  3. lukekarrys commented on Nov 12, 2025

    @lukekarrys
    Member

    Closed by 69e5fd2 (#3240)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions