Skip to content

Visual Studio 2022 Preview - stack Error: Could not find any Visual Studio installation to use  #2462

@raverecursion

Description

@raverecursion
  • Node Version: v15.3.0
  • Platform: /C:"System Type"` (Windows)
  • Compiler:
  • Module: node-sass

12094 error gyp verb find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Preview"

Verbose output (from npm or node-gyp):
12094 error gyp verb build dir attempting to create "build" dir: D:\Project\FashionOrb\client\node_modules\node-sass\build
12094 error gyp verb build dir "build" dir needed to be created? D:\Project\FashionOrb\client\node_modules\node-sass\build
12094 error gyp verb find VS msvs_version was set from command line or npm config
12094 error gyp verb find VS - looking for Visual Studio version 2017
12094 error gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
12094 error gyp verb find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Preview"
12094 error gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
12094 error gyp verb find VS looking for Visual Studio 2015
12094 error gyp verb find VS - not found
12094 error gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
12094 error gyp ERR! find VS
12094 error gyp ERR! find VS msvs_version was set from command line or npm config
12094 error gyp ERR! find VS - looking for Visual Studio version 2017
12094 error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
12094 error gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Preview"
12094 error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
12094 error gyp ERR! find VS looking for Visual Studio 2015
12094 error gyp ERR! find VS - not found
12094 error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
12094 error gyp ERR! find VS
12094 error gyp ERR! find VS valid versions for msvs_version:
12094 error gyp ERR! find VS
12094 error gyp ERR! find VS **************************************************************
12094 error gyp ERR! find VS You need to install the latest version of Visual Studio
12094 error gyp ERR! find VS including the "Desktop development with C++" workload.
12094 error gyp ERR! find VS For more information consult the documentation at:
12094 error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
12094 error gyp ERR! find VS **************************************************************
12094 error gyp ERR! find VS
12094 error gyp ERR! configure error
12094 error gyp ERR! stack Error: Could not find any Visual Studio installation to use
12094 error gyp ERR! stack     at VisualStudioFinder.fail (D:\Project\FashionOrb\client\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
12094 error gyp ERR! stack     at D:\Project\FashionOrb\client\node_modules\node-gyp\lib\find-visualstudio.js:74:16
12094 error gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (D:\Project\FashionOrb\client\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
12094 error gyp ERR! stack     at D:\Project\FashionOrb\client\node_modules\node-gyp\lib\find-visualstudio.js:70:14
12094 error gyp ERR! stack     at D:\Project\FashionOrb\client\node_modules\node-gyp\lib\find-visualstudio.js:372:16
12094 error gyp ERR! stack     at D:\Project\FashionOrb\client\node_modules\node-gyp\lib\util.js:54:7
12094 error gyp ERR! stack     at D:\Project\FashionOrb\client\node_modules\node-gyp\lib\util.js:33:16
12094 error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:316:5)
12094 error gyp ERR! stack     at ChildProcess.emit (node:events:376:20)
12094 error gyp ERR! stack     at maybeClose (node:internal/child_process:1055:16)
12094 error gyp ERR! System Windows_NT 10.0.22000
12094 error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Project\\FashionOrb\\client\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
12094 error gyp ERR! cwd D:\Project\FashionOrb\client\node_modules\node-sass
12094 error gyp ERR! node -v v15.3.0
12094 error gyp ERR! node-gyp -v v7.1.2
12094 error gyp ERR! not ok
12094 error Build failed with error code: 1
12095 verbose exit 1

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