node-gyp: While trying to Add-Type Find-VisualStudio.cs: Add-Type : Cannot add type. Compilation errors occurred
- node-gyp version: 10.0.1
- Node Version: v18.19.0, npm version: 10.2.3
- Platform: Windows Server 2022, Visual Studio Enterprise 2019
- Compiler: MSBuild 16.11.2.50704, CL 19.29.30153
.npmrc:
msbuild_path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe
msvs_version=2019
Verbose output (from npm or node-gyp):
> node-pre-gyp install --fallback-to-build -j max --loglevel silly
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [
node-pre-gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli 'C:\\Users\\svc_platform\\ericp\\llm-core\\build\\llm\\bindings\\node\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build',
node-pre-gyp verb cli '-j',
node-pre-gyp verb cli 'max',
node-pre-gyp verb cli '--loglevel',
node-pre-gyp verb cli 'silly'
node-pre-gyp verb cli ]
node-pre-gyp info using node-pre-gyp@1.0.10
node-pre-gyp info using node@18.19.0 | win32 | x64
node-pre-gyp verb command install [ 'max' ]
node-pre-gyp info build requesting source compile
node-pre-gyp verb command build [ 'rebuild', 'max' ]
gyp info it worked if it ends with ok
gyp info using node-gyp@10.0.1
gyp info using node@18.19.0 | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'configure',
gyp verb cli '--fallback-to-build',
gyp verb cli '--jobs=max',
gyp verb cli '--loglevel=silly',
gyp verb cli '--module=C:\\Users\\svc_platform\\ericp\\llm-core\\build\\llm\\bindings\\node\\build\\binding\\Release\\node-v108-win32-x64\\llm.node',
gyp verb cli '--module_name=llm',
gyp verb cli '--module_path=C:\\Users\\svc_platform\\ericp\\llm-core\\build\\llm\\bindings\\node\\build\\binding\\Release\\node-v108-win32-x64',
gyp verb cli '--napi_version=9',
gyp verb cli '--node_abi_napi=napi',
gyp verb cli '--napi_build_version=0',
gyp verb cli '--node_napi_label=node-v108',
gyp verb cli '--msvs_version=2019'
gyp verb cli ]
gyp info using node-gyp@10.0.1
gyp info using node@18.19.0 | win32 | x64
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if the py launcher can be used to find Python 3
gyp verb find Python - executing "py.exe" to get Python 3 executable path
gyp sill find Python execFile: exec = "py.exe"
gyp sill find Python execFile: args = ["-3","-c","import sys; print(sys.executable);"]
gyp sill find Python execFile result: err = null
gyp sill find Python execFile result: stdout = "3.9.13\r\n"
gyp sill find Python execFile result: stderr = ""
gyp verb find Python - version is "3.9.13"
gyp info find Python using Python version 3.9.13 found at "C:\Users\svc_platform\AppData\Local\Programs\Python\Python39\python.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 18.19.0
gyp verb install input version string "18.19.0"
gyp verb install installing version: 18.19.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 11
gyp verb needs "installVersion" 11
gyp verb install version is good
gyp verb on Windows; need to check node.lib
gyp verb get node dir target node version installed: 18.19.0
gyp verb build dir attempting to create "build" dir: C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\build
gyp verb build dir "build" dir needed to be created? Yes
gyp verb find VS msvs_version was set from command line or npm config
gyp verb find VS - looking for Visual Studio version 2019
gyp verb find VS running in VS Command Prompt, installation path is:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp verb find VS - will only use this version
gyp sill find VS Running C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [
gyp sill find VS '-ExecutionPolicy',
gyp sill find VS 'Unrestricted',
gyp sill find VS '-NoProfile',
gyp sill find VS '-Command',
gyp sill find VS "&{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_modules\\node-gyp\\lib\\Find-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJson()}"
gyp sill find VS ]
gyp sill find VS PS stderr = "Add-Type : (0) : Warning as Error: Invalid search path 'lib\\um\\x64' specified in 'LIB environment variable' -- 'The \r\nsystem can
not find the path specified. '\r\nAt line:1 char:3\r\n+ &{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_m ...\r\n+ ~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type]
, Except \r\n ion\r\n + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand\r\n \r\nAdd-Type : Cannot add type. Compilatio
n errors occurred.\r\nAt line:1 char:3\r\n+ &{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_m ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException\r\n + FullyQualifiedErrorId : COMP
ILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand\r\n \r\nUnable to find type [VisualStudioConfiguration.Main].\r\nAt line:1 char:112\r\n+ ... yp\\lib\\Fin
d-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJ ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo
: InvalidOperation: (VisualStudioConfiguration.Main:TypeName) [], RuntimeException\r\n + FullyQualifiedErrorId : TypeNotFound\r\n \r\n"
gyp sill find VS PS stdout = ""
gyp sill find VS SyntaxError: Unexpected end of JSON input
gyp sill find VS at JSON.parse (<anonymous>)
gyp sill find VS at VisualStudioFinder.parseData (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:153:21)
gyp sill find VS at VisualStudioFinder.findVisualStudio2017OrNewer (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:13
2:17)
gyp sill find VS at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp sill find VS at async VisualStudioFinder.findVisualStudio (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:63:20)
gyp sill find VS at async createBuildDir (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\configure.js:69:26)
gyp sill find VS at async run (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp verb find VS looking for Visual Studio 2015
gyp sill reg running C:\Windows\System32\reg.exe [
gyp sill reg 'query',
gyp sill reg 'HKLM\\Software\\Microsoft\\VisualStudio\\SxS\\VC7',
gyp sill reg '/v',
gyp sill reg '14.0'
gyp sill reg ]
gyp sill reg reg.exe stdout = ""
gyp sill reg reg.exe err = "Error: Command failed: C:\\Windows\\System32\\reg.exe query HKLM\\Software\\Microsoft\\VisualStudio\\SxS\\VC7 /v 14.0\nERROR: The syst
em was unable to find the specified registry key or value.\r\n\n at ChildProcess.exithandler (node:child_process:422:12)\n at ChildProcess.emit (node:events
:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:303:5)"
gyp sill reg reg.exe stderr = "ERROR: The system was unable to find the specified registry key or value.\r\n"
gyp sill reg running C:\Windows\System32\reg.exe [
gyp sill reg 'query',
gyp sill reg 'HKLM\\Software\\Wow6432Node\\Microsoft\\VisualStudio\\SxS\\VC7',
gyp sill reg '/v',
gyp sill reg '14.0'
gyp sill reg ]
gyp sill reg reg.exe stdout = ""
gyp sill reg reg.exe err = "Error: Command failed: C:\\Windows\\System32\\reg.exe query HKLM\\Software\\Wow6432Node\\Microsoft\\VisualStudio\\SxS\\VC7 /v 14.0\nER
ROR: The system was unable to find the specified registry key or value.\r\n\n at ChildProcess.exithandler (node:child_process:422:12)\n at ChildProcess.emit
(node:events:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:303:5)"
gyp sill reg reg.exe stderr = "ERROR: The system was unable to find the specified registry key or value.\r\n"
gyp verb find VS - not found
gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio version 2019
gyp ERR! find VS running in VS Command Prompt, installation path is:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp ERR! find VS - will only use this version
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
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 msvs_version does not match this VS Command Prompt or the
gyp ERR! find VS installation cannot be used.
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 **************************************************************
gyp ERR! find VS
gyp ERR! configure error
CUSTOMBUILD : gyp ERR! stack error : Could not find any Visual Studio installation to use [C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\llmnode.vcxp
roj]
gyp ERR! stack at VisualStudioFinder.fail (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:113:11)
gyp ERR! stack at VisualStudioFinder.findVisualStudio (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:69:17)
gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack at async createBuildDir (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\configure.js:69:26)
gyp ERR! stack at async run (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
gyp ERR! System Windows_NT 10.0.20348
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "
--fallback-to-build" "--jobs=max" "--loglevel=silly" "--module=C:\\Users\\svc_platform\\ericp\\llm-core\\build\\llm\\bindings\\node\\build\\binding\\Release\\node
-v108-win32-x64\\llm.node" "--module_name=llm" "--module_path=C:\\Users\\svc_platform\\ericp\\llm-core\\build\\llm\\bindings\\node\\build\\binding\\Release\\node-
v108-win32-x64" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108" "--msvs_version=2019"
gyp ERR! cwd C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node
gyp ERR! node -v v18.19.0
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
node-pre-gyp ERR! build error
CUSTOMBUILD : node-pre-gyp ERR! stack error : Failed to execute 'C:\Program Files\nodejs\node.exe C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp
\bin\node-gyp.js configure --fallback-to-build --jobs=max --loglevel=silly --module=C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\build\binding\Relea
se\node-v108-win32-x64\llm.node --module_name=llm --module_path=C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\build\binding\Release\node-v108-win32-x
64 --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108 --msvs_version=2019' (1) [C:\Users\svc_platform\ericp\llm-core\build\llm
\bindings\node\llmnode.vcxproj]
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\node_modules\@mapbox\node-pre-gyp\lib\util\c
ompile.js:89:23)
Failed to execute 'C:\Program Files\nodejs\node.exe C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-bui
ld --jobs=max --loglevel=silly --module=C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\build\binding\Release\node-v108-win32-x64\llm.node --module_n
ame=llm --module_path=C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\build\binding\Release\node-v108-win32-x64 --napi_version=9 --node_abi_napi=napi
--napi_build_version=0 --node_napi_label=node-v108 --msvs_version=2019' (1)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:517:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
node-pre-gyp ERR! System Windows_NT 10.0.20348
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\svc_platform\\ericp\\llm-core\\build\\llm\\bindings\\node\\node_modules\\@mapbox\\node
-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "-j" "max" "--loglevel" "silly"
node-pre-gyp ERR! cwd C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node
node-pre-gyp ERR! node -v v18.19.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.10
node-pre-gyp ERR! not ok
npm ERR! code 1
npm ERR! path C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build -j max --loglevel silly
npm ERR! A complete log of this run can be found in: C:\Users\svc_platform\AppData\Local\npm-cache\_logs\2024-02-11T02_23_13_016Z-debug-0.log
npm debug log:
``` 0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js 1 info using npm@10.2.3 2 info using node@v18.19.0 3 timing npm:load:whichnode Completed in 3ms 4 timing config:load:defaults Completed in 3ms 5 timing config:load:file:C:\ProgramData\nvm\v18.19.0\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 3ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node\.npmrc Completed in 1ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:C:\Users\svc_platform\.npmrc Completed in 2ms 12 timing config:load:user Completed in 2ms 13 timing config:load:file:C:\Program Files\nodejs\etc\npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:setEnvs Completed in 1ms 16 timing config:load Completed in 15ms 17 timing npm:load:configload Completed in 15ms 18 timing config:load:flatten Completed in 3ms 19 timing npm:load:mkdirpcache Completed in 0ms 20 timing npm:load:mkdirplogs Completed in 0ms 21 verbose title npm install 22 verbose argv "install" "--build-from-source" 23 timing npm:load:setTitle Completed in 2ms 24 timing npm:load:display Completed in 1ms 25 verbose logfile logs-max:10 dir:C:\Users\svc_platform\AppData\Local\npm-cache\_logs\2024-02-11T02_23_13_016Z- 26 verbose logfile C:\Users\svc_platform\AppData\Local\npm-cache\_logs\2024-02-11T02_23_13_016Z-debug-0.log 27 timing npm:load:logFile Completed in 12ms 28 timing npm:load:timers Completed in 0ms 29 timing npm:load:configScope Completed in 0ms 30 timing npm:load Completed in 60ms 31 timing arborist:ctor Completed in 0ms 32 silly logfile start cleaning logs, removing 2 files 33 timing idealTree:init Completed in 47ms 34 timing idealTree:userRequests Completed in 0ms 35 silly idealTree buildDeps 36 timing idealTree:#root Completed in 0ms 37 timing idealTree:buildDeps Completed in 2ms 38 timing idealTree:fixDepFlags Completed in 0ms 39 timing idealTree Completed in 51ms 40 silly logfile done cleaning log files 41 timing arborist:ctor Completed in 0ms 42 timing reify:loadTrees Completed in 68ms 43 timing reify:diffTrees Completed in 5ms 44 silly reify moves {} 45 timing reify:retireShallow Completed in 1ms 46 timing reify:createSparse Completed in 0ms 47 timing reify:loadBundles Completed in 0ms 48 silly audit bulk request { 48 silly audit '@mapbox/node-pre-gyp': [ '1.0.10' ], 48 silly audit abbrev: [ '1.1.1' ], 48 silly audit 'agent-base': [ '6.0.2' ], 48 silly audit 'ansi-regex': [ '5.0.1' ], 48 silly audit aproba: [ '2.0.0' ], 48 silly audit 'are-we-there-yet': [ '2.0.0' ], 48 silly audit 'balanced-match': [ '1.0.2' ], 48 silly audit 'brace-expansion': [ '1.1.11' ], 48 silly audit chownr: [ '2.0.0' ], 48 silly audit 'color-support': [ '1.1.3' ], 48 silly audit 'concat-map': [ '0.0.1' ], 48 silly audit 'console-control-strings': [ '1.1.0' ], 48 silly audit debug: [ '4.3.4' ], 48 silly audit delegates: [ '1.0.0' ], 48 silly audit 'detect-libc': [ '2.0.2' ], 48 silly audit 'emoji-regex': [ '8.0.0' ], 48 silly audit 'fs-minipass': [ '2.1.0' ], 48 silly audit minipass: [ '3.3.6', '5.0.0' ], 48 silly audit 'fs.realpath': [ '1.0.0' ], 48 silly audit gauge: [ '3.0.2' ], 48 silly audit glob: [ '7.2.3' ], 48 silly audit 'has-unicode': [ '2.0.1' ], 48 silly audit 'https-proxy-agent': [ '5.0.1' ], 48 silly audit inflight: [ '1.0.6' ], 48 silly audit inherits: [ '2.0.4' ], 48 silly audit 'is-fullwidth-code-point': [ '3.0.0' ], 48 silly audit 'lru-cache': [ '6.0.0' ], 48 silly audit 'make-dir': [ '3.1.0' ], 48 silly audit semver: [ '6.3.1', '7.6.0' ], 48 silly audit minimatch: [ '3.1.2' ], 48 silly audit minizlib: [ '2.1.2' ], 48 silly audit mkdirp: [ '1.0.4' ], 48 silly audit ms: [ '2.1.2' ], 48 silly audit 'node-addon-api': [ '6.1.0' ], 48 silly audit 'node-fetch': [ '2.7.0' ], 48 silly audit nopt: [ '5.0.0' ], 48 silly audit npmlog: [ '5.0.1' ], 48 silly audit 'object-assign': [ '4.1.1' ], 48 silly audit once: [ '1.4.0' ], 48 silly audit 'path-is-absolute': [ '1.0.1' ], 48 silly audit 'readable-stream': [ '3.6.2' ], 48 silly audit rimraf: [ '3.0.2' ], 48 silly audit 'safe-buffer': [ '5.2.1' ], 48 silly audit 'set-blocking': [ '2.0.0' ], 48 silly audit 'signal-exit': [ '3.0.7' ], 48 silly audit string_decoder: [ '1.3.0' ], 48 silly audit 'string-width': [ '4.2.3' ], 48 silly audit 'strip-ansi': [ '6.0.1' ], 48 silly audit tar: [ '6.2.0' ], 48 silly audit tr46: [ '0.0.3' ], 48 silly audit 'util-deprecate': [ '1.0.2' ], 48 silly audit 'webidl-conversions': [ '3.0.1' ], 48 silly audit 'whatwg-url': [ '5.0.0' ], 48 silly audit 'wide-align': [ '1.1.5' ], 48 silly audit wrappy: [ '1.0.2' ], 48 silly audit yallist: [ '4.0.0' ] 48 silly audit } 49 timing reify:unpack Completed in 3ms 50 timing reify:unretire Completed in 34ms 51 timing build:queue Completed in 0ms 52 timing build:deps Completed in 0ms 53 timing build Completed in 0ms 54 timing reify:build Completed in 1ms 55 timing reify:trash Completed in 0ms 56 timing reify:save Completed in 28ms 57 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 215ms 58 timing auditReport:getReport Completed in 220ms 59 silly audit report {} 60 timing auditReport:init Completed in 0ms 61 timing reify:audit Completed in 220ms 62 timing reify Completed in 303ms 63 timing command:install Completed in 1862ms 64 verbose stack Error: command failed 64 verbose stack at ChildProcess.<anonymous> (C:\ProgramData\nvm\v18.19.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:53:27) 64 verbose stack at ChildProcess.emit (node:events:517:28) 64 verbose stack at maybeClose (node:internal/child_process:1098:16) 64 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:303:5) 65 verbose pkgid @tw/llm@3.4.0-dev.3596 66 verbose cwd C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node 67 verbose Windows_NT 10.0.20348 68 verbose node v18.19.0 69 verbose npm v10.2.3 70 error code 1 71 error path C:\Users\svc_platform\ericp\llm-core\build\llm\bindings\node 72 error command failed 73 error command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build -j max --loglevel silly 74 verbose exit 1 75 timing npm Completed in 2349ms 76 verbose code 1 77 error A complete log of this run can be found in: C:\Users\svc_platform\AppData\Local\npm-cache\_logs\2024-02-11T02_23_13_016Z-debug-0.log ```The problem seems to be
gyp sill find VS Running C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [
gyp sill find VS '-ExecutionPolicy',
gyp sill find VS 'Unrestricted',
gyp sill find VS '-NoProfile',
gyp sill find VS '-Command',
gyp sill find VS "&{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_modules\\node-gyp\\lib\\Find-VisualStudio.cs';[VisualStudioConfigurati
on.Main]::PrintJson()}"
gyp sill find VS ]
gyp sill find VS PS stderr = "Add-Type : (0) : Warning as Error: Invalid search path 'lib\\um\\x64' specified in 'LIB environment variable' -- 'The \r\nsystem can
not find the path specified. '\r\nAt line:1 char:3\r\n+ &{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_m ...\r\n+ ~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type]
, Except \r\n ion\r\n + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand\r\n \r\nAdd-Type : Cannot add type. Compilatio
n errors occurred.\r\nAt line:1 char:3\r\n+ &{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_m ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException\r\n + FullyQualifiedErrorId : COMP
ILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand\r\n \r\nUnable to find type [VisualStudioConfiguration.Main].\r\nAt line:1 char:112\r\n+ ... yp\\lib\\Fin
d-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJ ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo
: InvalidOperation: (VisualStudioConfiguration.Main:TypeName) [], RuntimeException\r\n + FullyQualifiedErrorId : TypeNotFound\r\n \r\n"
I tried running the same command from the Powershell command line and it worked fine:
PS C:\Users\svc_platform.TWNY> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -NoProfile -Command '&{Add-Type -Path 'C:\\ProgramData\\nvm\\v18.19.0\\node_modules\\npm\\node_modules\\node-gyp\\lib\\Find-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJson()}'
[{"path":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise","version":"16.11.34407.143","packages":["Component.CPython39.x64","CPython39.Exe.x64","Component.CPython3.x64","CPython3.Exe.x64","Microsoft.VisualStudio.Workload.NativeDesktop","Microsoft.VisualStudio.Component.VC.ASAN","Microsoft.VisualCpp.ASAN.X86","Microsoft.VC.14.29.16.11.ASAN.X86.base","Microsoft.VC.14.29.16.11.ASAN.X64.base","Microsoft.VC.14.29.16.11.ASAN.Headers.base","Microsoft.VisualStudio.VC.IDE.Project.Factories.x64","Microsoft.VisualStudio.VC.IDE.Project.Factories.x86","Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest","Microsoft.VisualStudio.VC.Ide.TestAdapterForGoogleTest","Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest","Microsoft.VisualStudio.VC.Ide.TestAdapterForBoostTest","Microsoft.VisualStudio.Component.VC.ATL","Microsoft.VisualStudio.VC.Ide.ATL","Microsoft.VisualStudio.VC.Ide.ATL.Resources","Microsoft.VisualCpp.ATL.X86","Microsoft.VC.14.29.16.11.ATL.X86.base","Microsoft.VisualCpp.ATL.X64","Microsoft.VC.14.29.16.11.ATL.X64.base","Microsoft.VC.14.29.16.11.Props.ATLMFC","Microsoft.VisualCpp.ATL.Source","Microsoft.VC.14.29.16.11.ATL.Source.base","Microsoft.VisualCpp.ATL.Headers","Microsoft.VC.14.29.16.11.ATL.Headers.base","Microsoft.VC.14.29.16.11.Servicing.ATL","Microsoft.VisualStudio.Component.VC.CMake.Project","Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake","Microsoft.VisualStudio.VC.CMake","Microsoft.VisualStudio.VC.CMake.Project","Microsoft.VisualStudio.VC.CMake.Client","Microsoft.VisualStudio.VC.ExternalBuildFramework","Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core","Microsoft.VisualStudio.PackageGroup.TestTools.Native","Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Native","Microsoft.VisualStudio.Component.VC.Redist.14.Latest","Microsoft.VisualStudio.VC.Templates.UnitTest","Microsoft.VisualStudio.VC.UnitTest.Desktop.Build.Core","Microsoft.VisualStudio.TestTools.TestPlatform.V1.CPP","Microsoft.VisualStudio.VC.Templates.UnitTest.Resources","Microsoft.VisualStudio.VC.Templates.Desktop","Microsoft.VisualStudio.VC.Templates.Desktop.Server","Microsoft.VisualStudio.Component.Windows10SDK.19041","Win10SDK_10.0.19041","Microsoft.VisualStudio.Component.VC.DiagnosticTools","Microsoft.VisualStudio.Component.Graphics.Tools","Microsoft.VisualStudio.Component.VC.Tools.x86.x64","Microsoft.VisualCpp.CodeAnalysis.Extensions","Microsoft.VisualCpp.CodeAnalysis.Extensions.X86","Microsoft.VC.14.29.16.11.CodeAnalysis.Extensions.X86.base","Microsoft.VC.14.29.16.11.CodeAnalysis.X86.Res.base","Microsoft.VisualCpp.CodeAnalysis.ConcurrencyCheck.X86","Microsoft.VC.14.29.16.11.CodeAnalysis.ConcCheck.X86.base","Microsoft.VC.14.29.16.11.CA.ConcCheck.X86.Res.base","Microsoft.VisualCpp.CodeAnalysis.Extensions.X64","Microsoft.VC.14.29.16.11.CodeAnalysis.Extensions.X64.base","Microsoft.VC.14.29.16.11.Servicing.CAExtensions","Microsoft.VC.14.29.16.11.CodeAnalysis.X64.Res.base","Microsoft.VisualCpp.CodeAnalysis.ConcurrencyCheck.X64","Microsoft.VC.14.29.16.11.CodeAnalysis.ConcCheck.X64.base","Microsoft.VC.14.29.16.11.CA.ConcCheck.X64.Res.base","Microsoft.VisualCpp.Tools.HostX64.TargetX86","Microsoft.VC.14.29.16.11.Tools.HostX64.TargetX86.base","Microsoft.VC.14.29.16.11.Tools.HostX64.TargetX86.Res.base","Microsoft.VisualCpp.Tools.HostX64.TargetX64","Microsoft.VC.14.29.16.11.Tools.HostX64.TargetX64.base","Microsoft.VC.14.29.16.11.Tools.HostX64.TargetX64.Res.base","Microsoft.VisualCpp.Premium.Tools.HostX86.TargetX64","Microsoft.VC.14.29.16.11.Premium.Tools.HostX86.TargetX64.base","Microsoft.VC.14.29.16.11.Prem.Hostx86.Targetx64.Res.base","Microsoft.VisualCpp.Premium.Tools.HostX86.TargetX86","Microsoft.VC.14.29.16.11.Premium.Tools.HostX86.TargetX86.base","Microsoft.VC.14.29.16.11.Prem.HostX86.TargetX86.Res.base","Microsoft.VisualCpp.Premium.Tools.HostX64.TargetX86","Microsoft.VC.14.29.16.11.Premium.Tools.HostX64.TargetX86.base","Microsoft.VC.14.29.16.11.Prem.HostX64.TargetX86.Res.base","Microsoft.VisualCpp.Premium.Tools.HostX64.TargetX64","Microsoft.VC.14.29.16.11.Premium.Tools.HostX64.TargetX64.base","Microsoft.VC.14.29.16.11.Prem.HostX64.TargetX64.Res.base","Microsoft.VisualCpp.PGO.X86","Microsoft.VC.14.29.16.11.PGO.X86.base","Microsoft.VisualCpp.PGO.X64","Microsoft.VC.14.29.16.11.PGO.X64.base","Microsoft.VisualCpp.PGO.Headers","Microsoft.VC.14.29.16.11.PGO.Headers.base","Microsoft.VisualCpp.CRT.x86.Store","Microsoft.VC.14.29.16.11.CRT.x86.Store.base","Microsoft.VisualCpp.CRT.x86.OneCore.Desktop","Microsoft.VC.14.29.16.11.CRT.x86.OneCore.Desktop.base","Microsoft.VisualCpp.CRT.x64.Store","Microsoft.VC.14.29.16.11.CRT.x64.Store.base","Microsoft.VisualCpp.CRT.x64.OneCore.Desktop","Microsoft.VC.14.29.16.11.CRT.x64.OneCore.Desktop.base","Microsoft.VisualCpp.CRT.Redist.x86.OneCore.Desktop","Microsoft.VC.14.29.16.11.CRT.Redist.x86.OneCore.Desktop.base","Microsoft.VisualCpp.CRT.Redist.x64.OneCore.Desktop","Microsoft.VC.14.29.16.11.CRT.Redist.x64.OneCore.Desktop.base","Microsoft.VisualStudio.PackageGroup.VC.Tools.x86","Microsoft.VisualCpp.Tools.HostX86.TargetX64","Microsoft.VC.14.29.16.11.Tools.HostX86.TargetX64.base","Microsoft.VC.14.29.16.11.Props.x64","Microsoft.VC.14.29.16.11.Tools.Hostx86.Targetx64.Res.base","Microsoft.VisualCpp.Tools.HostX86.TargetX86","Microsoft.VC.14.29.16.11.Tools.HostX86.TargetX86.base","Microsoft.VC.14.29.16.11.Servicing.Compilers","Microsoft.VC.14.29.16.11.Props.x86","Microsoft.VC.14.29.16.11.Props","Microsoft.VC.14.29.16.11.Tools.HostX86.TargetX86.Res.base","Microsoft.VisualCpp.Tools.Core.Resources","Microsoft.VisualCpp.Tools.Core.x86","Microsoft.VC.14.29.16.11.Tools.Core.Props","Microsoft.VisualCpp.DIA.SDK","Microsoft.VisualCpp.Servicing.DIASDK","Microsoft.VisualCpp.CRT.x86.Desktop","Microsoft.VC.14.29.16.11.CRT.x86.Desktop.base","Microsoft.VisualCpp.CRT.x64.Desktop","Microsoft.VC.14.29.16.11.CRT.x64.Desktop.base","Microsoft.VisualCpp.CRT.Source","Microsoft.VC.14.29.16.11.CRT.Source.base","Microsoft.VisualCpp.CRT.Redist.X86","Microsoft.VC.14.29.16.11.CRT.Redist.X86.base","Microsoft.VisualCpp.CRT.Redist.X64","Microsoft.VisualCpp.CRT.Redist.Resources","Microsoft.VC.14.29.16.11.CRT.Redist.X64.base","Microsoft.VisualCpp.RuntimeDebug.14","Microsoft.VisualCpp.RuntimeDebug.14","Microsoft.VisualCpp.Redist.14.Latest","Microsoft.VisualCpp.Redist.14.Latest","Microsoft.VisualCpp.CRT.Headers","Microsoft.VC.14.29.16.11.CRT.Headers.base","Microsoft.VC.14.29.16.11.Servicing.CrtHeaders","Microsoft.VisualStudio.Graphics.Viewers","Microsoft.VisualStudio.Graphics.Viewers.Resources","Microsoft.VisualStudio.Graphics.EnableTools","Microsoft.VisualStudio.Graphics.Msi","Microsoft.VisualStudio.Graphics.Msi","Microsoft.VisualStudio.Graphics.Analyzer","Microsoft.VisualStudio.Graphics.Analyzer.Targeted","Microsoft.VisualStudio.Graphics.Analyzer.Resources","Microsoft.VisualStudio.Graphics.Appid","Microsoft.VisualStudio.Graphics.Appid.Resources","Microsoft.VisualStudio.Component.VC.CoreIde","Microsoft.VisualStudio.VC.Ide.Pro","Microsoft.VisualStudio.VC.Ide.Pro.Resources","Microsoft.VisualStudio.VC.Templates.General","Microsoft.VisualStudio.VC.Templates.General.Server","Microsoft.VisualStudio.VC.Templates.General.Server.Resources","Microsoft.VisualStudio.VC.Templates.General.Resources","Microsoft.VisualStudio.VC.Items.Pro","Microsoft.VisualStudio.Component.CodeMap","Microsoft.VisualStudio.Component.GraphDocument","Microsoft.VisualStudio.Vmp","Microsoft.VisualStudio.GraphDocument","Microsoft.VisualStudio.GraphDocument.Resources","Microsoft.VisualStudio.CodeMap","Microsoft.VisualStudio.Component.ClassDesigner","Microsoft.VisualStudio.PackageGroup.VC.CoreIDE.Reduced","Microsoft.VisualStudio.VC.Ide.x64","Microsoft.VisualStudio.PackageGroup.VC.CoreIDE.Express","Microsoft.VisualStudio.VC.vcvars","Microsoft.VS.VC.vcvars.x86.Shortcuts","Microsoft.VS.VC.vcvars.x64.Shortcuts","Microsoft.VisualStudio.VC.MSBuild.X64.v142","Microsoft.VisualStudio.VC.MSBuild.X64","Microsoft.VisualStudio.VC.MSBuild.ARM.v142","Microsoft.VisualStudio.VC.MSBuild.ARM","Microsoft.VisualStudio.VC.MSBuild.x86.v142","Microsoft.VisualStudio.VC.MSBuild.X86","Microsoft.VisualStudio.VC.MSBuild.Base","Microsoft.VisualStudio.VC.MSBuild.Base.Resources","Microsoft.VisualStudio.VC.Ide.WinXPlus","Microsoft.VisualStudio.VC.Ide.Dskx","Microsoft.VisualStudio.VC.Ide.Dskx.Resources","Microsoft.VisualStudio.VC.Ide.Base","Microsoft.VisualStudio.VC.Ide.Base.Resources","Microsoft.VisualStudio.VC.Ide.LanguageService","Microsoft.VisualStudio.VC.Llvm.Base","Microsoft.VisualStudio.VC.Ide.VCPkgDatabase","Microsoft.VisualStudio.Cache.Service","Microsoft.VisualStudio.VC.Ide.Core","Microsoft.VisualStudio.VC.Ide.Progression.Enterprise","Microsoft.VisualStudio.VC.Ide.ProjectSystem","Microsoft.VisualStudio.VC.Ide.Core.VCProjectEngine","Microsoft.VisualStudio.VC.Ide.Core.VCProjectEngine.Resources","Microsoft.VisualStudio.VC.Ide.ProjectSystem.Resources","Microsoft.VisualStudio.VC.Ide.LanguageService.Resources","Microsoft.VisualStudio.ClassDesigner","Microsoft.VisualStudio.ClassDesigner.Resources","Microsoft.VisualStudio.Component.IntelliCode","Microsoft.VisualStudio.VsDevCmd.Ext.IntelliCode","Microsoft.VisualStudio.IntelliCode.CSharp","Microsoft.VisualStudio.IntelliCode","Component.Microsoft.VisualStudio.LiveShare","Microsoft.VisualStudio.Component.Debugger.JustInTime","Microsoft.VisualStudio.Debugger.ImmersiveActivateHelper.Msi","Microsoft.VisualStudio.Debugger.JustInTime","Microsoft.VisualStudio.Debugger.JustInTime.Msi","Microsoft.VisualStudio.LiveShare","Microsoft.VisualStudio.Dsl.GraphObject","Microsoft.DiagnosticsHub.Instrumentation","Microsoft.DiagnosticsHub.CpuSampling.ExternalDependencies","Microsoft.DiagnosticsHub.CpuSampling","Microsoft.DiagnosticsHub.CpuSampling.Targeted","Microsoft.VisualStudio.Component.IntelliTrace.FrontEnd","Microsoft.IntelliTrace.DiagnosticsHubAgent.Targeted","Microsoft.IntelliTrace.Debugger","Microsoft.IntelliTrace.Debugger.Targeted","Microsoft.IntelliTrace.FrontEnd","Microsoft.Net.4.TargetingPack","Microsoft.VisualStudio.VC.Ide.ResourceEditor","Microsoft.VisualStudio.VC.Ide.ResourceEditor.Resources","Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime","sqllocaldb","Microsoft.VisualStudio.Component.TextTemplating","Microsoft.VisualStudio.TextTemplating.MSBuild","Microsoft.VisualStudio.TextTemplating.Integration","Microsoft.VisualStudio.TextTemplating.Core","Microsoft.VisualStudio.TextTemplating.Integration.Resources","Microsoft.Component.MSBuild","Microsoft.NuGet.Build.Tasks.Setup","Microsoft.VisualStudio.Component.JavaScript.TypeScript","Microsoft.VisualStudio.PackageGroup.Debugger.Script","Microsoft.VisualStudio.Debugger.Script.Msi","Microsoft.VisualStudio.Debugger.Script","Microsoft.VisualStudio.Debugger.Script","Microsoft.VisualStudio.Debugger.Script.Resources","Microsoft.VisualStudio.Debugger.Script.Resources","Microsoft.VisualStudio.Component.TypeScript.4.3","TypeScript.Build","Microsoft.VisualStudio.TypeScript.Sdk.4.3","Microsoft.VisualStudio.PackageGroup.JavaScript.Language","Microsoft.VisualStudio.Package.NodeJs","TypeScript.LanguageService","TypeScript.Tools","Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions","Microsoft.VisualStudio.ProTools","sqlsysclrtypes","sqlsysclrtypes","SQLCommon","Microsoft.VisualStudio.ProTools.Resources","Microsoft.VisualStudio.Web.Scaffolding","Microsoft.VisualStudio.WebToolsExtensions","Microsoft.VisualStudio.WebTools","Microsoft.VisualStudio.WebTools.Resources","Microsoft.VisualStudio.WebTools.MSBuild","Microsoft.VisualStudio.WebTools.WSP.FSA","Microsoft.VisualStudio.WebTools.WSP.FSA.Resources","Microsoft.VisualCpp.CRT.ClickOnce.Msi","Microsoft.VisualStudio.VC.Ide.MDD","Microsoft.VisualStudio.VisualC.Utilities","Microsoft.VisualStudio.VisualC.Utilities.Resources","Microsoft.WebTools.Shared","Microsoft.WebTools.DotNet.Core.ItemTemplates","Microsoft.VisualStudio.Component.Roslyn.LanguageServices","Microsoft.DiaSymReader.Native","Microsoft.VisualStudio.StaticAnalysis","Microsoft.VisualStudio.StaticAnalysis.Resources","Microsoft.VisualStudio.StaticAnalysis.IDE","Microsoft.VisualStudio.StaticAnalysis.IDE.Resources","Microsoft.VisualStudio.StaticAnalysis.auxil","Microsoft.VisualStudio.StaticAnalysis.auxil.Resources","Microsoft.VisualStudio.Component.Roslyn.Compiler","Microsoft.CodeAnalysis.Compilers","Roslyn.VisualStudio.Setup.ServiceHub","Microsoft.VisualStudio.Component.NuGet","Microsoft.CredentialProvider","Microsoft.VisualStudio.NuGet.Licenses","Microsoft.VisualStudio.PackageGroup.Community","Microsoft.VisualStudio.Community.Extra.Resources","Microsoft.VisualStudio.Community.Extra","Microsoft.NetCore.TemplateLocator","Microsoft.Net.Core.SDK.MSBuildExtensions","Microsoft.VisualStudio.Workload.Python","Microsoft.Component.PythonTools","Microsoft.CookiecutterTools.Vsix","Microsoft.CookiecutterTools.Vsix.Resources","Microsoft.PythonTools.Profiling.Vsix","Microsoft.PythonTools.Profiling.Vsix.Resources","Microsoft.PythonTools.LiveShare.Vsix","Microsoft.PythonTools.LiveShare.Vsix.Resources","Microsoft.PythonTools.Core.Templates.Vsix","Microsoft.PythonTools.Core.Vsix","Microsoft.PythonTools.Core.Vsix.Resources","Microsoft.PackageGroup.Icecap.Core","Microsoft.PackageGroup.DiagnosticsHub.Platform","Microsoft.DiagnosticsHub.Collection.ExternalDependencies.x64","Microsoft.DiagnosticsHub.Collection","Microsoft.DiagnosticsHub.Collection.Service","Microsoft.DiagnosticsHub.Collection.StopService.Install","Microsoft.DiagnosticsHub.Runtime.ExternalDependencies","SQLiteCore","SQLiteCore.Targeted","Microsoft.DiagnosticsHub.Runtime.ExternalDependencies.Targeted","Microsoft.DiagnosticsHub.Runtime","Microsoft.DiagnosticsHub.Runtime.Targeted","Microsoft.VisualStudio.PackageGroup.TestTools.CodeCoverage","Microsoft.VisualStudio.PackageGroup.IntelliTrace.Core","Microsoft.IntelliTrace.Core","Microsoft.IntelliTrace.Core.Concord","Microsoft.IntelliTrace.Core.Targeted","Microsoft.IntelliTrace.ProfilerProxy.Msi.x64","Microsoft.IntelliTrace.ProfilerProxy.Msi","Microsoft.VisualStudio.TestTools.DynamicCodeCoverage","Microsoft.VisualStudio.TestTools.CodeCoverage.Msi","Microsoft.VisualStudio.TestTools.CodeCoverage","Microsoft.Icecap.Analysis","Microsoft.Icecap.Analysis.Targeted","Microsoft.Icecap.Analysis.Resources","Microsoft.Icecap.Analysis.Resources.Targeted","Microsoft.Icecap.Collection.Msi","Microsoft.Icecap.Collection.Msi.Targeted","Microsoft.Icecap.Collection.Msi.Resources","Microsoft.Icecap.Collection.Msi.Resources.Targeted","Microsoft.VisualStudio.InstrumentationEngine","Microsoft.VisualStudio.PackageGroup.TestTools.Core","Microsoft.VisualStudio.PackageGroup.TestTools.TestPlatform.V2.CLI","Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI","Microsoft.VisualStudio.PackageGroup.TestTools.TestPlatform.V1.CLI","Microsoft.VisualStudio.TestTools.Pex.Common","Microsoft.VisualStudio.PackageGroup.TestTools.TestPlatform.Legacy","Microsoft.VisualStudio.PackageGroup.MinShell.Interop","Microsoft.VisualStudio.TestTools.TP.Legacy.Tips.Msi","Microsoft.VisualStudio.TestTools.TP.Legacy.Tips.Common","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Tips","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Tips.Resources","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.TestTools","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Remote","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Professional","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Core.Premium","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Common","Microsoft.VisualStudio.TestTools.TP.Legacy.Common.Res","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Core","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Core.Resources","Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Agent","Microsoft.VisualStudio.PackageGroup.TestTools.TestPlatform.IDE","Microsoft.VisualStudio.TestTools.TestPlatform.V1.CLI","Microsoft.VisualStudio.TestTools.TestWIExtension","Microsoft.VisualStudio.TestTools.TestPlatform.IDE","Microsoft.VisualStudio.PackageGroup.TestTools.DataCollectors","Microsoft.VisualStudio.TestTools.NE.Msi.Targeted","Microsoft.VisualStudio.TestTools.NetworkEmulation","Microsoft.VisualStudio.TestTools.DataCollectors","Microsoft.VisualStudio.InteractiveWindow","Microsoft.VisualCpp.Redist.14","Microsoft.VisualCpp.Redist.14","Microsoft.VisualCpp.Servicing.Redist","Microsoft.VC.14.29.16.11.Servicing","Microsoft.VisualStudio.PackageGroup.Core","Microsoft.VisualStudio.SccCodeLenses","Microsoft.VisualStudio.CodeSense.Community","Microsoft.VisualStudio.TestTools.TeamFoundationClient","Microsoft.VisualStudio.PackageGroup.Debugger.Core","Microsoft.VisualStudio.PackageGroup.Debugger.TimeTravel.Replay","Microsoft.VisualStudio.Debugger.TimeTravel.Replay.VS","Microsoft.VisualStudio.Debugger.TimeTravel.Replay.VS","Microsoft.VisualStudio.Debugger.TimeTravel.Replay","Microsoft.VisualStudio.Debugger.TimeTravel.Replay","Microsoft.VisualStudio.VC.Ide.Debugger","Microsoft.VisualStudio.VC.Ide.Debugger.Concord","Microsoft.VisualStudio.VC.Ide.Debugger.Concord.Resources","Microsoft.VisualStudio.VC.Ide.Debugger.Resources","Microsoft.VisualStudio.VC.Ide.Common","Microsoft.VisualStudio.VC.Ide.Common.Resources","Microsoft.VisualStudio.Debugger.CollectionAgents","Microsoft.VisualStudio.Debugger.Managed","Microsoft.CodeAnalysis.VisualStudio.Setup","Microsoft.VisualStudio.Debugger.Concord.Managed","Microsoft.VisualStudio.Debugger.Concord.Managed.Resources","Microsoft.VisualStudio.Debugger.Managed.Resources","Microsoft.VisualStudio.Debugger.TargetComposition","Microsoft.VisualStudio.Debugger.TargetComposition","Microsoft.VisualStudio.Debugger.Remote","Microsoft.VisualStudio.Debugger.Concord.Remote","Microsoft.VisualStudio.Debugger.Concord.Remote.Resources","Microsoft.VisualStudio.Debugger.Remote","Microsoft.VisualStudio.Debugger.Concord.Remote","Microsoft.VisualStudio.Debugger.Concord.Remote.Resources","Microsoft.VisualStudio.Debugger.Remote.Resources","Microsoft.VisualStudio.Debugger.Remote.Resources","Microsoft.VisualStudio.Debugger","Microsoft.DiaSymReader.PortablePdb","Microsoft.VisualStudio.Debugger.Package.DiagHub.Client.VSx86","Microsoft.VisualStudio.Debugger.Remote.DiagHub.Client","Microsoft.VisualStudio.Debugger.Remote.DiagHub.Client","Microsoft.VisualStudio.VC.MSVCDis","Microsoft.VisualStudio.ScriptedHost","Microsoft.VisualStudio.ScriptedHost.Targeted","Microsoft.VisualStudio.ScriptedHost.Resources","Microsoft.VisualStudio.ScriptedHost.Registry","Microsoft.IntelliTrace.DiagnosticsHub","Microsoft.VisualStudio.Debugger.Concord","Microsoft.VisualStudio.Debugger.Concord.Resources","Microsoft.VisualStudio.Debugger.Resources","Microsoft.VisualStudio.PackageGroup.DebuggerClient.Core","Microsoft.VisualStudio.Debugger.BrokeredServices","Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost","Microsoft.VisualStudio.DebuggerClient.Remote","Microsoft.VisualStudio.DebuggerClient.Concord.Remote","Microsoft.VisualStudio.DebuggerClient.Concord.Remote.Resources","Microsoft.VisualStudio.DebuggerClient.Remote.Resources","Microsoft.VisualStudio.Debugger.Parallel","Microsoft.VisualStudio.Debugger.Parallel.Resources","Microsoft.VisualStudio.DebuggerClient.Managed","Microsoft.CodeAnalysis.ExpressionEvaluator","Microsoft.VisualStudio.DebuggerClient.Concord.Managed","Microsoft.VisualStudio.DebuggerClient.Concord.Managed.Resources","Microsoft.VisualStudio.DebuggerClient","Microsoft.VisualStudio.DebuggerClient.Concord","Microsoft.VisualStudio.DebuggerClient.Concord.Resources","Microsoft.VisualStudio.DebuggerClient.Resources","Microsoft.PackageGroup.ClientDiagnostics","Microsoft.VisualStudio.AppResponsiveness","Microsoft.VisualStudio.AppResponsiveness.Targeted","Microsoft.VisualStudio.AppResponsiveness.Resources","Microsoft.VisualStudio.ClientDiagnostics","Microsoft.VisualStudio.ClientDiagnostics.Targeted","Microsoft.VisualStudio.ClientDiagnostics.Resources","Microsoft.VisualStudio.Professional","Microsoft.VisualStudio.Enterprise","Microsoft.ShDocVw","Microsoft.VisualStudio.PackageGroup.CommunityCore","Microsoft.VisualStudio.ProjectSystem.Full","Microsoft.VisualStudio.ProjectSystem.Query","Microsoft.VisualStudio.ProjectSystem","Microsoft.VisualStudio.Community.x86","Microsoft.VisualStudio.Community.x64","Microsoft.VisualStudio.Community","Microsoft.IntelliTrace.CollectorCab","Microsoft.VisualStudio.Community.Resources","Microsoft.VisualStudio.Net.Eula.Resources","Microsoft.VisualStudio.WebSiteProject.DTE","Microsoft.VisualStudio.Diagnostics.AspNetHelper","Microsoft.VisualStudio.Diagnostics.AspNetHelper.Enterprise","Microsoft.MSHtml","Microsoft.VisualStudio.Platform.CallHierarchy","Microsoft.VisualStudio.Community.Msi.Resources","Microsoft.VisualStudio.Community.Msi","Microsoft.VisualStudio.Devenv.Msi","Microsoft.VisualStudio.MinShell.Interop.Msi","Microsoft.VisualStudio.Editors","Microsoft.VisualStudio.Product.Enterprise","Microsoft.VisualStudio.PackageGroup.LiveShare.VSCore","Microsoft.VisualStudio.LiveShare.VSCore","Microsoft.VisualStudio.LiveShareApi","Microsoft.VisualStudio.Workload.CoreEditor","Microsoft.VisualStudio.Component.CoreEditor","Microsoft.VisualStudio.PackageGroup.CoreEditor","Microsoft.VisualCpp.Tools.Common.UtilsPrereq","Microsoft.VisualCpp.Tools.Common.Utils","Microsoft.VisualCpp.Tools.Common.Utils.Resources","Microsoft.VisualStudio.PackageGroup.VsDevCmd","Microsoft.VisualStudio.VsDevCmd.Ext.NetFxSdk","Microsoft.VisualStudio.VsDevCmd.Core.WinSdk","Microsoft.VisualStudio.VsDevCmd.Core.DotNet","Microsoft.VisualStudio.VC.DevCmd","Microsoft.VisualStudio.VC.DevCmd.Resources","Microsoft.VisualStudio.VirtualTree","Microsoft.VisualStudio.PackageGroup.Progression","Microsoft.VisualStudio.PerformanceProvider","Microsoft.VisualStudio.GraphModel","Microsoft.VisualStudio.GraphProvider","Microsoft.DiaSymReader","Microsoft.Build.Dependencies","Microsoft.Build.FileTracker.Msi","Microsoft.Build","Microsoft.VisualStudio.PackageGroup.NuGet","Microsoft.DataAI.NuGetRecommender","Microsoft.VisualStudio.NuGet.Core","Microsoft.Build.UnGAC","Microsoft.VisualStudio.TextMateGrammars","Microsoft.VisualStudio.Platform.CrossRepositorySearch","Microsoft.VisualStudio.PackageGroup.TeamExplorer.Common","Microsoft.VisualStudio.TeamExplorer","Microsoft.ServiceHub.Node","Microsoft.ServiceHub.Managed","Microsoft.VisualStudio.ProjectServices","Microsoft.VisualStudio.OpenFolder.VSIX","Microsoft.VisualStudio.FileHandler.Msi","Microsoft.VisualStudio.FileHandler.Msi","Microsoft.VisualStudio.PackageGroup.MinShell","Microsoft.VisualStudio.MinShell.Interop","Microsoft.VisualStudio.Log","Microsoft.VisualStudio.Log.Targeted","Microsoft.VisualStudio.Log.Resources","Microsoft.VisualStudio.Finalizer","Microsoft.VisualStudio.Devenv","Microsoft.VisualStudio.Devenv.Resources","Microsoft.VisualStudio.CoreEditor","Microsoft.VisualStudio.Navigation.RichCodeNav","Microsoft.VisualStudio.Platform.NavigateTo","Microsoft.VisualStudio.Connected","Microsoft.VisualStudio.AzureSDK","Microsoft.VisualStudio.PerfLib","Microsoft.VisualStudio.Connected.Resources","Microsoft.VisualStudio.MinShell","Microsoft.VisualStudio.Devinit","Microsoft.VisualStudio.Setup.WMIProvider","Microsoft.VisualStudio.Setup.Configuration","Microsoft.VisualStudio.LanguageServer","Microsoft.VisualStudio.Platform.Terminal","Microsoft.VisualStudio.MefHosting","Microsoft.VisualStudio.MefHosting.Resources","Microsoft.VisualStudio.Initializer","Microsoft.VisualStudio.ExtensionManager","Microsoft.VisualStudio.Platform.Editor","Microsoft.VisualStudio.MinShell.x86","Microsoft.VisualStudio.NativeImageSupport","Microsoft.VisualStudio.MinShell.Msi","Microsoft.VisualStudio.MinShell.Msi.Resources","Microsoft.VisualStudio.Devenv.Config","Microsoft.VisualStudio.MinShell.Resources","Microsoft.Net.PackageGroup.4.7.2.Redist","Microsoft.VisualStudio.Branding.Enterprise"]},{"path":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools","version":"16.11.34407.143","packages":["Microsoft.VisualStudio.Product.BuildTools","Microsoft.VisualStudio.Workload.MSBuildTools","Microsoft.VisualStudio.Component.CoreBuildTools","Microsoft.VisualStudio.Setup.WMIProvider","Microsoft.VisualStudio.Setup.Configuration","Microsoft.VisualStudio.PackageGroup.VsDevCmd","Microsoft.VisualStudio.VsDevCmd.Ext.NetFxSdk","Microsoft.VisualStudio.VsDevCmd.Core.WinSdk","Microsoft.VisualStudio.VsDevCmd.Core.DotNet","Microsoft.VisualStudio.VC.DevCmd","Microsoft.VisualStudio.VC.DevCmd.Resources","Microsoft.VisualStudio.BuildTools.Resources","Microsoft.VisualStudio.Net.Eula.Resources","Microsoft.Build.Dependencies","Microsoft.Build.FileTracker.Msi","Microsoft.Component.MSBuild","Microsoft.NetCore.TemplateLocator","Microsoft.Net.Core.SDK.MSBuildExtensions","Microsoft.PythonTools.BuildCore.Vsix","Microsoft.NuGet.Build.Tasks.Setup","Microsoft.VisualStudio.Component.Roslyn.Compiler","Microsoft.CodeAnalysis.Compilers","Microsoft.Net.PackageGroup.4.7.2.Redist","Microsoft.VisualStudio.NativeImageSupport","Microsoft.Build","Microsoft.VisualStudio.PackageGroup.NuGet","Microsoft.VisualStudio.NuGet.BuildTools","Microsoft.Build.UnGAC"]}]
PS C:\Users\svc_platform.TWNY>
About this issue
- Original URL
- State: open
- Created 5 months ago
- Comments: 15 (5 by maintainers)
Both Windows and Node are outside of my usual domain so my understanding is somewhat limited, otherwise I might have some better feedback. Looking at the docs I don’t see
msbuild_path
- I must have gotten that from googling around after I ran into the Add-Path error. I’m not sure if that should be documented or not.Another datapoint I have is on this part of the README:
It worked for me without installing VSSetup.
On a different topic:
Should I submit a PR to add
-IgnoreWarnings
to theAdd-Type
call infind-visualstudio.js
? It’s not the best fix in the world. It would be better to not ignore warnings and solve what seems to be the core problem:Invalid search path 'lib\\um\\x64' specified in 'LIB environment variable'
. But on the other hand I don’t want to be patching node-gyp indefinitely, stuck on version 10.0.1 😃