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

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
aleksey-hoffmancommented, Oct 4, 2021

@cclauss the issue should probably be re-opened:

VS Studio: 2022 (all build tools and C++ workloads are inistalled)

>node-gyp
v8.2.0
>node-gyp configure

Error

gyp info it worked if it ends with ok
gyp info using node-gyp@8.2.0
gyp info using node@15.14.0 | win32 | x64
gyp info find Python using Python version 3.9.6 found at "C:\Python39\python.exe"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Preview"
gyp ERR! find VS unknown version "undefined" found at "C:\Program Files (x86)\Microsoft Visual Studio\2022\Preview"
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 **************************************************************
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Could not find any Visual Studio installation to use ...
Please look thru your error log for the string gyp info using node-gyp@ and if the version number is less than the current...
Read more >
node-gyp error Could not find any Visual Studio installation ...
I have configured msvs_version to have the value of 2022 , I did that with npm config set msvs_version=2022 and with node-gyp configure...
Read more >
Troubleshoot Visual Studio installation and upgrade issues
This troubleshooting guide includes step-by-step instructions that should resolve most installation issues. Online installations. The following steps apply ...
Read more >
Visual Studio 2022 Release Notes
Get the latest features, bug fixes, and support for Visual Studio 2022. Download today.
Read more >
Visual Studio Preview - Microsoft
Be the first to access the future of Visual Studio 2022. Get the preview today and try out new features not yet released...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found