deepkit-framework icon indicating copy to clipboard operation
deepkit-framework copied to clipboard

[Bug] Windows installation difficulty

Open axtens opened this issue 3 years ago • 1 comments

I have node-lts installed on Windows 11 using scoop. I tried installing as per the documentation with the following log generated: 2022-06-11T10_36_02_815Z-debug-0.log

axtens avatar Jun 11 '22 10:06 axtens

Hi did you possibly forget to install the build tools required by node-gyp?

1255 error gyp ERR! find VS 
1255 error gyp ERR! find VS msvs_version not set from command line or npm config
1255 error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
1255 error gyp ERR! find VS checking VS2022 (17.2.32526.322) found at:
1255 error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
1255 error gyp ERR! find VS - found "Visual Studio C++ core features"
1255 error gyp ERR! find VS - missing any VC++ toolset
1255 error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
1255 error gyp ERR! find VS looking for Visual Studio 2015
1255 error gyp ERR! find VS - not found
1255 error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
1255 error gyp ERR! find VS 
1255 error gyp ERR! find VS **************************************************************
1255 error gyp ERR! find VS You need to install the latest version of Visual Studio
1255 error gyp ERR! find VS including the "Desktop development with C++" workload.
1255 error gyp ERR! find VS For more information consult the documentation at:
1255 error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
1255 error gyp ERR! find VS **************************************************************
1255 error gyp ERR! find VS 
1255 error gyp ERR! configure error 
1255 error gyp ERR! stack Error: Could not find any Visual Studio installation to use
1255 error gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
1255 error gyp ERR! stack     at C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
1255 error gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
1255 error gyp ERR! stack     at C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
1255 error gyp ERR! stack     at C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
1255 error gyp ERR! stack     at C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
1255 error gyp ERR! stack     at C:\Users\bugma\scoop\persist\nodejs-lts\bin\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
1255 error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)
1255 error gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
1255 error gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
1255 error gyp ERR! System Windows_NT 10.0.22000
1255 error gyp ERR! command "C:\\Users\\bugma\\scoop\\apps\\nodejs-lts\\current\\node.exe" "C:\\Users\\bugma\\scoop\\persist\\nodejs-lts\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
1255 error gyp ERR! cwd C:\Users\bugma\scoop\persist\nodejs-lts\cache\_cacache\tmp\git-clonecgnfWS
1255 error gyp ERR! node -v v16.15.1
1255 error gyp ERR! node-gyp -v v9.0.0
1255 error gyp ERR! not ok 
1255 error npm ERR! code 1
1255 error npm ERR! path C:\Users\bugma\scoop\persist\nodejs-lts\cache\_cacache\tmp\git-clonecgnfWS
1255 error npm ERR! command failed
1255 error npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp-build
1255 error
1255 error npm ERR! A complete log of this run can be found in:
1255 error npm ERR!     C:\Users\bugma\scoop\persist\nodejs-lts\cache\_logs\2022-06-11T10_37_16_297Z-debug-0.log
1256 verbose exit 1

https://stackoverflow.com/questions/26959640/why-does-node-gyp-and-other-stuff-require-visual-studio

Char2sGu avatar Jun 11 '22 10:06 Char2sGu