upleveled / system-setup

Set up a PERN development environment on Windows, macOS and Linux
28 stars 19 forks source link

Running ESLint config setup failing with `NMAKE : fatal error U1052` #75

Open Draikth opened 1 month ago

Draikth commented 1 month ago

:one: What happened that was unexpected

I followed the ESLint setup from the readme this repo, and I ended up with a strange error and the dependency won't install... Error from Hyper and screenshot of package.json comparisons to follow...

Detected project type: Next.js with PostgreSQL
Installing 4 ESLint config dependencies...
 WARN  8 deprecated subdependencies found: @humanwhocodes/config-array@0.13.0, @humanwhocodes/object-schema@2.0.3, are-we-there-yet@2.0.0, gauge@3.0.2, glob@7.2.3, inflight@1.0.6, npmlog@5.0.1, rimraf@3.0.2
Packages: +117
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 669, reused 620, downloaded 0, added 1, done
node_modules/.pnpm/libpg-query@15.2.0_encoding@0.1.13/node_modules/libpg-query: Running install script, failed in 9s
.../node_modules/libpg-query install$ node-pre-gyp install --fallback-to-build --loglevel verbose
│ 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\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\@mapbox+node-pre-gyp@1.0.11_encoding@0.1.13\\node_modules\\@mapbox\\node-pre-…  
│ node-pre-gyp verb cli   'install',
│ node-pre-gyp verb cli   '--fallback-to-build',
│ node-pre-gyp verb cli   '--loglevel',
│ node-pre-gyp verb cli   'verbose'
│ node-pre-gyp verb cli ]
│ node-pre-gyp info using node-pre-gyp@1.0.11
│ node-pre-gyp info using node@20.12.1 | win32 | x64
│ node-pre-gyp verb command install []
│ node-pre-gyp info check checked for "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\Releas…  
│ node-pre-gyp http GET https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v15.2.0-node-v115-win32-x64.tar.gz
│ node-pre-gyp ERR! install response status 404 Not Found on https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v15.2.0-node-v115-win32-…  
│ node-pre-gyp WARN Pre-built binaries not installable for libpg-query@15.2.0 and node@20.12.1 (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
│ node-pre-gyp WARN Hit error response status 404 Not Found on https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v15.2.0-node-v115-win3…  
│ node-pre-gyp verb command build [ 'rebuild' ]
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.12.1 | 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:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js',
│ gyp verb cli 'configure',
│ gyp verb cli '--fallback-to-build',
│ gyp verb cli '--loglevel=verbose',
│ gyp verb cli '--module=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query\\build\\Release\\…  
│ gyp verb cli '--module_name=queryparser',
│ gyp verb cli '--module_path=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query\\build\\Rele…  
│ 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-v115'
│ gyp verb cli ]
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.12.1 | 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 verb find Python - executable path is "C:\Python312\python.exe"
│ gyp verb find Python - executing "C:\Python312\python.exe" to get version
│ gyp verb find Python - version is "3.12.2"
│ gyp info find Python using Python version 3.12.2 found at "C:\Python312\python.exe"
│ gyp verb get node dir no --target version specified, falling back to host node version: 20.12.1
│ gyp verb install input version string "20.12.1"
│ gyp verb install installing version: 20.12.1
│ 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: 20.12.1
│ gyp verb build dir attempting to create "build" dir: C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-qu…  
│ gyp verb build dir "build" dir needed to be created? Yes
│ gyp verb find VS msvs_version not set from command line or npm config
│ gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ 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
│ gyp verb find VS Failure details: undefined
│ gyp verb find VS checking VS2022 (17.9.34723.18) found at:
│ gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp verb find VS - found "Visual Studio C++ core features"
│ gyp verb find VS - found VC++ toolset: v143
│ gyp verb find VS - found Windows SDK: 10.0.22621.0
│ gyp info find VS using VS2022 (17.9.34723.18) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp info find VS run with --verbose for detailed information
│ gyp verb build/config.gypi creating config file
│ gyp verb build/config.gypi writing out config file: C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-que…  
│ gyp verb config.gypi checking for gypi file: C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\conf…  
│ gyp verb common.gypi checking for gypi file: C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\comm…  
│ gyp verb gyp gyp format was not specified; forcing "msvs"
│ gyp info spawn C:\Python312\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modules\\node-gyp\\gyp\\gyp_main.py',
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query\\build\\config.gypi…  
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modules\\node-gyp\\addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\20.12.1\\include\\node\\common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\20.12.1',
│ gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modules\\node-gyp',
│ gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\User\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\20.12.1\\\\<(target_arch)\\\\node.lib',
│ gyp info spawn args '-Dmodule_root_dir=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query',   
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query\\build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ 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:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js',
│ gyp verb cli 'build',
│ gyp verb cli '--fallback-to-build',
│ gyp verb cli '--loglevel=verbose',
│ gyp verb cli '--module=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query\\build\\Release\\…  
│ gyp verb cli '--module_name=queryparser',
│ gyp verb cli '--module_path=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-query@15.2.0_encoding@0.1.13\\node_modules\\libpg-query\\build\\Rele…  
│ 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-v115'
│ gyp verb cli ]
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.12.1 | win32 | x64
│ gyp verb build type Release
│ gyp verb architecture x64
│ gyp verb node dev dir C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1
│ gyp verb python C:\Python312\python.exe
│ gyp verb found first Solution file build\binding.sln
│ gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn args [
│ gyp info spawn args 'build\\binding.sln',
│ gyp info spawn args '/nologo',
│ gyp info spawn args '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ Build started 12/06/2024 19:00:41.
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\binding.sln" on node 1 (default ta…  
│ ValidateSolutionConfiguration:
│   Building solution configuration "Release|x64".
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\binding.sln" (1) is building "C:\U…  
│ PrepareForBuild:
│   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
│   Creating directory "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\Release\".
│ InitializeBuildStatus:
│   Creating "Release\obj\nothing\nothing.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
│   Touching "Release\obj\nothing\nothing.tlog\unsuccessfulbuild".
│ ClCompile:
│   All outputs are up-to-date.
│   All outputs are up-to-date.
│ Lib:
│   C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\Lib.exe /OUT:"C:\Users\User\projects\nextjs-ecomm-store\node_mo…  
│   "Release\obj\nothing\\node-addon-api@7.1.0\node_modules\node-addon-api\nothing.obj"
│   nothing.vcxproj -> C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\Release\\nothing.lib     
│ FinalizeBuildStatus:
│   Deleting file "Release\obj\nothing\nothing.tlog\unsuccessfulbuild".
│   Touching "Release\obj\nothing\nothing.tlog\nothing.lastbuildstate".
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node-addon-api@7.1.0\node_modules\node-addon-api\no…  
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\binding.sln" (1) is building "C:\U…  
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\queryparser.vcxproj.metaproj" (3) …  
│ PrepareForBuild:
│   Creating directory "Release\obj\queryparser\".
│   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
│   Creating directory "Release\obj\queryparser\queryparser.tlog\".
│ InitializeBuildStatus:
│   Creating "Release\obj\queryparser\queryparser.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
│   Touching "Release\obj\queryparser\queryparser.tlog\unsuccessfulbuild".
│ CustomBuild:
│   prebuild_dependencies
│   Cloning into 'libpg_query'...
│   Note: switching to 'db39825bc7c1ddd45962ec6a626d740b7f8f027a'.
│
│   You are in 'detached HEAD' state. You can look around, make experimental
│   changes and commit them, and you can discard any commits you make in this
│   state without impacting any branches by switching back to a branch.
│
│   If you want to create a new branch to retain commits you create, you may
│   do so (now or later) by using -c with the switch command. Example:
│
│     git switch -c <new-branch-name>
│
│   Or undo this operation with:
│
│     git switch -
│
│   Turn off this advice by setting config variable advice.detachedHead to false
│
│   HEAD is now at db39825 Update changelog, prepare `15-4.2.4` release (#227)
│   "please ensure you are running at Windows Developer Command Prompt environments"
│
│   Microsoft (R) Program Maintenance Utility Version 14.39.33523.0
│   Copyright (C) Microsoft Corporation.  All rights reserved.
│
│ NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\li…  
│   Stop.
│
│   Microsoft (R) Program Maintenance Utility Version 14.39.33523.0
│   Copyright (C) Microsoft Corporation.  All rights reserved.
│
│ NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\li…  
│   Stop.
│ CUSTOMBUILD : error : 'nmake' command failed [C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\bui…  
│   File Not Found
│   "ERROR: pg_query.lib not found"
│   The system cannot find the file specified.
│           1 file(s) copied.
│ C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for '..\binding.g…  
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\queryparser.vcxproj"…  
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\queryparser.vcxproj.…  
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\binding.sln" (defaul…  
│ Build FAILED.
│ "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\binding.sln" (default target) (1) ->
│ "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\queryparser.vcxproj.metaproj" (default tar…  
│ "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\build\queryparser.vcxproj" (default target) (4) …  
│ (CustomBuild target) ->
│   NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\…  
│   NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\…  
│   CUSTOMBUILD : error : 'nmake' command failed [C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query\b…  
│   C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for '..\binding…  
│     0 Warning(s)
│     4 Error(s)
│ Time Elapsed 00:00:05.59
│ gyp ERR! build error
│ gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
│ gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\User\AppData\Local\node\corepack\v1\pnpm\9.3.0\dist\node_modules\node-gyp\lib\build.js:209:23)
│ gyp ERR! stack at ChildProcess.emit (node:events:518:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
│ gyp ERR! System Windows_NT 10.0.22631
│ gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js" …  
│ gyp ERR! cwd C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query
│ gyp ERR! node -v v20.12.1
│ gyp ERR! node-gyp -v v10.1.0
│ gyp ERR! not ok
│ node-pre-gyp ERR! build error
│ node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\User\AppData\Local\node\corepack\v1\pnpm\9.3.0\dist\node_modules\node-gyp\bin\…  
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\@mapbox+node-pre-gyp@1.0.11_encoding@0.1.13\node_mod…  
│ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
│ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
│ node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
│ node-pre-gyp ERR! System Windows_NT 10.0.22631
│ node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\@mapbox+node-pre-gyp@1.0.11_encoding@…  
│ node-pre-gyp ERR! cwd C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query
│ node-pre-gyp ERR! node -v v20.12.1
│ node-pre-gyp ERR! node-pre-gyp -v v1.0.11
│ node-pre-gyp ERR! not ok
│ Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\User\AppData\Local\node\corepack\v1\pnpm\9.3.0\dist\node_modules\node-gyp\bin\node-gyp.js build --fallback-to…  
└─ Failed in 9s at C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query
 ELIFECYCLE  Command failed with exit code 1.
node:internal/errors:984
  const err = new Error(message);
              ^

Error: Command failed: pnpm add --save-dev @ts-safeql/eslint-plugin libpg-query prettier-plugin-embed prettier-plugin-sql
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at file:///C:/Users/User/projects/nextjs-ecomm-store/node_modules/.pnpm/eslint-config-upleveled@8.2.1_@babel+core@7.24.6_@types+eslint@8.56.10_@types+node@20.12.13_@_rhlrwx2pmjlwgy5t5zzhx6eroq/node_modules/eslint-config-upleveled/bin/install.js:138:1
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 20384,
  stdout: null,
  stderr: null
}

Node.js v20.12.1

Victor's Package.json from the lecture video a shot of Victors package JSON from the the Databases_ Improving Robustness and Catching Typos (by Victor) video - YouTube

My package .json for comparison My package json - nextjs-ecomm-store - Visual Studio Code

:two: What were your expectations That the ESLINT re-install after postgres should work

:three: Your guess of what the problem is The Error message mentions a detatched HEAD state, and that seems to be causing the issues, but I don't understand why I would be in that state, as I haven't branched my repo and from what I read online it has to do with branching, so not sure how it connects

:four: A list of things you have tried to solve it Looked up Git Detachted HEAD state online but I don't see how it applies to me, as I haven't branched any of my repos and as far as I can understand this normally happens when that is the case? Maybe it has something to do with where the ESLint things are stored and where I'm supposed to get it from?

Draikth commented 1 month ago

So Karl suggested I uninstall and reinstall using step 8 of the system setup... which I did and this is what my powershell showed me... It is a lot however I saw I had a lot of yellow [warning] text segments and one red text segment that I will highlight (apologies for the great wall of codeblock), also I apologise if I am doing this wrong and if there is a better way to show this stuff please let me know, I just figured it might be good to have this easily available...

highlighted area that was in red text during install (1st line was white text, red text started on the second line)

[4644:001a][2024-06-13T08:31:45] Download requested: https://aka.ms/vs/17/release/channel                                                                                                                          [4644:001b][2024-06-13T08:31:45] Error 0x8013153b: [4644:001b][2024-06-13T08:31:45] Could not update channel "https://aka.ms/vs/17/release/channel"                                                                   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)                                                                                                                                       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<Download>d__27.MoveNext()                                                                                                          --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)                                                                                                                                       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.ChannelDownloader.<GetLatestChannelManifestAsync>d__7.MoveNext()                                                                                                                --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)                                                                                                                                       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.ChannelManager.<UpdateChannelManifestAsync>d__71.MoveNext() 

yellow text block just before the red text above

[4644:001a][2024-06-13T08:31:45] WebClient error 'RequestCanceled' with 'https://aka.ms/vs/17/release/channel' - ExecuteWithRetryAsync failed along with a cancellation request                                    Warning: [4644:001a][2024-06-13T08:31:45] Failed to get the HttpWebResponse while invoking a HEAD request against https://aka.ms/vs/17/release/channel:System.OperationCanceledException: The operation was canceled.                                                                                                                                                                                                                    at System.Threading.CancellationToken.ThrowOperationCanceledException()                                                                                                                                            at System.Threading.CancellationToken.ThrowIfCancellationRequested()                                                                                                                                               at Microsoft.VisualStudio.Setup.Download.WebRequestService.<>c__DisplayClass9_0.<ExecuteWithRetryAsync>b__0(Object _)                                                                                              at System.Threading.Tasks.Task`1.InnerInvoke()                                                                                                                                                                     at System.Threading.Tasks.Task.Execute()                                                                                                                                                                        --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<MungeUriAsync>d__28.MoveNext()

all code during install

Chocolatey uninstalled 2/2 packages.                                                                                                                                                                                See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).                                                                                                                                          PS C:\WINDOWS\system32> choco install python visualstudio2022-workload-vctools -y                                                                                                                                  Chocolatey v2.2.2                                                                                                                                                                                                  Installing the following packages:                                                                                                                                                                                 python;visualstudio2022-workload-vctools                                                                                                                                                                           By installing, you accept licenses for the packages.                                                                                                                                                               Progress: Downloading python312 3.12.4... 100%                                                                                                                                                                                                                                                                                                                                                                                        python312 v3.12.4 [Approved]                                                                                                                                                                                       python312 package files install completed. Performing other installation steps.                                                                                                                                    Installing 64-bit python312...                                                                                                                                                                                     python312 has been installed.                                                                                                                                                                                      Added C:\ProgramData\chocolatey\bin\python3.12.exe shim pointed to 'c:\python312\python.exe'.                                                                                                                      Python installed to: 'C:\Python312'                                                                                                                                                                                Restricting write permissions to Administrators                                                                                                                                                                      python312 can be automatically uninstalled.                                                                                                                                                                       The install of python312 was successful.                                                                                                                                                                            Software installed as 'exe', install location is likely default.                                                                                                                                                 Progress: Downloading python3 3.12.4... 100%                                                                                                                                                                                                                                                                                                                                                                                          python3 v3.12.4 [Approved]                                                                                                                                                                                         python3 package files install completed. Performing other installation steps.                                                                                                                                       The install of python3 was successful.                                                                                                                                                                              Software installed to 'C:\ProgramData\chocolatey\lib\python3'                                                                                                                                                    Progress: Downloading python 3.12.4... 100%                                                                                                                                                                                                                                                                                                                                                                                           python v3.12.4 [Approved]                                                                                                                                                                                          python package files install completed. Performing other installation steps.                                                                                                                                        The install of python was successful.                                                                                                                                                                               Software installed to 'C:\ProgramData\chocolatey\lib\python'                                                                                                                                                     Progress: Downloading visualstudio2022-workload-vctools 1.0.0... 100%                                                                                                                                                                                                                                                                                                                                                                 visualstudio2022-workload-vctools v1.0.0 [Approved] - Possibly broken                                                                                                                                              visualstudio2022-workload-vctools package files install completed. Performing other installation steps.                                                                                                            Installing visualstudio2022-workload-vctools...                                                                                                                                                                                                                                                                                                                                                                                       [4644:0001][2024-06-13T08:31:39] Saving the current locale (en-US) to user.json.                                                                                                                                   [4644:0001][2024-06-13T08:31:39] Setting the telemetry services                                                                                                                                                    [4644:0004][2024-06-13T08:31:39] Creating a new telemetry service.                                                                                                                                                 [4644:0001][2024-06-13T08:31:39] Visual Studio Installer Version: 3.10.2154                                                                                                                                        [4644:0001][2024-06-13T08:31:39] Raw Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" --includeRecommended --norestart --quiet --add Microsoft.VisualStudio.Workload.VCTools                                                                                                                                  [4644:0001][2024-06-13T08:31:39] Parsed command line options: modify --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" --norestart --quiet                                                                                                                                                                                            [4644:0001][2024-06-13T08:31:39] Using registry value of (0) to theme installer.                                                                                                                                   [4644:0001][2024-06-13T08:31:39] Getting singleton lock. Mutex name: DevdivInstallerUI                                                                                                                             [4644:0001][2024-06-13T08:31:39] Getting singleton lock succeed.                                                                                                                                                   [4644:0004][2024-06-13T08:31:39] Telemetry session ID: 6c85c5ee-fbfc-4915-9a2e-15c709a89b25                                                                                                                        [4644:0001][2024-06-13T08:31:39] Creating new ExperimentationService                                                                                                                                               [4644:0001][2024-06-13T08:31:39] Telemetry property VS.ABExp.Flights : lazytoolboxinit;fwlargebuffer;refactoring;spmoretempsbtn1;asloff;keybindgoldbarext;asynccsproj;vsfricheditor;completionapi;typeimportcompletion:30562486;vsttkcf:30514304;4f604693:30775293;i4588376:30751670;fijh5155:30690136;8ig0d248:30783238;85ihc887:30842123;chat_aa_t:30915623;enablecontextinhistoryt:30979417;vscp_gpt40125_t:31073605               [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.source : WPF                                                                                                                                         [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.locale : en-US                                                                                                                                       [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.installerversion : 3.10.2154.60269                                                                                                                   [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.startmethod : direct                                                                                                                                 [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.activityid : 25ad5092-3c2e-4fec-8cb5-2ec57fbe88de                                                                                                    [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.campaign :                                                                                                                                           [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.passive : False                                                                                                                                      [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.quiet : True                                                                                                                                         [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.processtype : ui                                                                                                                                     [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.force : False                                                                                                                                        [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.noweb : False                                                                                                                                        [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.iselevated : True                                                                                                                                    [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.issystem : False                                                                                                                                     [4644:0004][2024-06-13T08:31:39] Telemetry property vs.willow.isadmin : True                                                                                                                                       [4644:0001][2024-06-13T08:31:39] Navigation requested from ApplicationViewModel to MainPageViewModel                                                                                                               [4644:0016][2024-06-13T08:31:41] Uri 'https://go.microsoft.com/fwlink/?linkid=857708' redirected to 'https://sendvsfeedback2.azurewebsites.net/api'                                                                [4644:0003][2024-06-13T08:31:41] Telemetry property vs.setup.WorkloadOverrides.DidReceiveOverride : False                                                                                                          [4644:0003][2024-06-13T08:31:41] Telemetry property vs.setup.WorkloadOverrides.RuleId : None                                                                                                                       [4644:000f][2024-06-13T08:31:41] Telemetry property VS.SetupEngine.ChannelUpdateDisabled : False                                                                                                                   Warning: [4644:000f][2024-06-13T08:31:41] Setup expects one or more channel manifest in the repository.                                                                                                            Warning: [4644:000f][2024-06-13T08:31:41] Setup expects one or more channel manifest in the repository.                                                                                                            [4644:000f][2024-06-13T08:31:41] Authentication Environment variable setting value: null                                                                                                                           [4644:000f][2024-06-13T08:31:41] Authenticate: True                                                                                                                                                                [4644:0016][2024-06-13T08:31:42] Download requested: https://download.visualstudio.microsoft.com/download/pr/f6850a76-835b-4992-ad3c-23d083df6841/a07380a72ff6c63b733154de09d92822dbc968510b20a08b0571e5aa8dedaf0c/VisualStudio.17.Release.chman                                                                                                                                                                                      [4644:001a][2024-06-13T08:31:42] Attempting download 'https://download.visualstudio.microsoft.com/download/pr/f6850a76-835b-4992-ad3c-23d083df6841/a07380a72ff6c63b733154de09d92822dbc968510b20a08b0571e5aa8dedaf0c/VisualStudio.17.Release.chman' using engine 'WebClient'                                                                                                                                                           [4644:001a][2024-06-13T08:31:42] ManifestVerifier Result: Success                                                                                                                                                  [4644:001a][2024-06-13T08:31:42] Download of 'https://download.visualstudio.microsoft.com/download/pr/f6850a76-835b-4992-ad3c-23d083df6841/a07380a72ff6c63b733154de09d92822dbc968510b20a08b0571e5aa8dedaf0c/VisualStudio.17.Release.chman' succeeded using engine 'WebClient'                                                                                                                                                         [4644:0004][2024-06-13T08:31:42] Trying to remove channel manifest: C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\installChannelManifest.json                                     [4644:0004][2024-06-13T08:31:42] Trying to remove product manifest: C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\install_catalog.json                                            Warning: [4644:0005][2024-06-13T08:31:42] No catalog found at 'C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\catalog.json'                                                        [4644:0016][2024-06-13T08:31:42] Download requested: https://go.microsoft.com/fwlink/?linkid=2066144                                                                                                               [4644:001a][2024-06-13T08:31:42] Attempting download 'https://go.microsoft.com/fwlink/?linkid=2066144' using engine 'WebClient'                                                                                    Warning: [4644:0005][2024-06-13T08:31:42] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\d59f2f6e\catalog.previous.json'                                                  [4644:0015][2024-06-13T08:31:42] Status changed to NoUpdate                                                                                                                                                        [4644:0005][2024-06-13T08:31:42] Telemetry property VS.SetupEngine.ChannelUpdateDisabled : False                                                                                                                   Warning: [4644:0005][2024-06-13T08:31:42] Didn't find any channel feed.                                                                                                                                            [4644:0008][2024-06-13T08:31:42] Setup Engine v3.10.2154, Microsoft Windows NT 10.0.22631.0                                                                                                                        [4644:0008][2024-06-13T08:31:42] Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" --includeRecommended --norestart --quiet --add Microsoft.VisualStudio.Workload.VCTools                                                                                                                                      [4644:001a][2024-06-13T08:31:42] Uri 'https://go.microsoft.com/fwlink/?linkid=2066144' redirected to 'https://vsstartpagenewsfeed.azureedge.net/news/vs'                                                           [4644:001a][2024-06-13T08:31:42] Download of 'https://go.microsoft.com/fwlink/?linkid=2066144' succeeded using engine 'WebClient'                                                                                  [4644:0008][2024-06-13T08:31:42] Loading packages for instance 'd59f2f6e'                                                                                                                                          [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:43] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' found for package 'Microsoft.VisualStudio.Debugger.Script.Msi,version=17.9.34511.75,machinearch=x64'              [4644:0008][2024-06-13T08:31:44] Compatible package is not installed. Code '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' will not be used for repair/uninstall attempts.                                                [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:0008][2024-06-13T08:31:44] Loaded existing instance for product 'Microsoft.VisualStudio.Product.BuildTools,version=17.9.34723.18'                                                                            [4644:0008][2024-06-13T08:31:44] Telemetry property VS.SetupEngine.Id : VisualStudio/17.9.5+34723.18                                                                                                               [4644:0008][2024-06-13T08:31:44] Telemetry property VS.SetupEngine.Branch : d17.9                                                                                                                                  [4644:0008][2024-06-13T08:31:44] Telemetry property VS.SetupEngine.BuildNumber : 17.9.34723.18                                                                                                                     [4644:0008][2024-06-13T08:31:44] Telemetry property VS.SetupEngine.InstanceId : d59f2f6e                                                                                                                           [4644:0008][2024-06-13T08:31:44] Telemetry property VS.SetupEngine.EngineVersion : 3.10.2154.60269                                                                                                                 [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' found for package 'Microsoft.VisualStudio.Debugger.Script.Msi,version=17.9.34511.75,machinearch=x64'              [4644:0008][2024-06-13T08:31:44] Compatible package is not installed. Code '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' will not be used for repair/uninstall attempts.                                                [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:0008][2024-06-13T08:31:44] Package Microsoft.Windows.UniversalCRT.Msu.7 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.                          [4644:0008][2024-06-13T08:31:44] Package Microsoft.Windows.UniversalCRT.Msu.8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.2,6.3)'.                          [4644:0008][2024-06-13T08:31:44] Package Microsoft.Windows.UniversalCRT.Msu.81 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.3,6.4)'.                         [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.Debugger.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.                  [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' found for package 'Microsoft.VisualStudio.Debugger.Script.Msi,version=17.9.34511.75,machinearch=x64'              [4644:0008][2024-06-13T08:31:44] Compatible package is not installed. Code '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' will not be used for repair/uninstall attempts.                                                [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.FullRedist.20H2 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.               [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.17763]'.                         [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.KB5003306 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.18362,10.0.18363]'.                     [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.KB5003304 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19041,10.0.19042)'.                     [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.1.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.                  [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.        [4644:0008][2024-06-13T08:31:44] Package Microsoft.Windows.UniversalCRT.Msu.7 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.                          [4644:0008][2024-06-13T08:31:44] Package Microsoft.Windows.UniversalCRT.Msu.8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.2,6.3)'.                          [4644:0008][2024-06-13T08:31:44] Package Microsoft.Windows.UniversalCRT.Msu.81 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.3,6.4)'.                         [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.Debugger.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.                  [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' found for package 'Microsoft.VisualStudio.Debugger.Script.Msi,version=17.9.34511.75,machinearch=x64'              [4644:0008][2024-06-13T08:31:44] Compatible package is not installed. Code '{D56DC014-C4C1-4330-B32B-D9785DAE7BCB}' will not be used for repair/uninstall attempts.                                                [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.FullRedist.20H2 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.               [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.17763]'.                         [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.KB5003306 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.18362,10.0.18363]'.                     [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.KB5003304 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19041,10.0.19042)'.                     [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:0008][2024-06-13T08:31:44] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:0008][2024-06-13T08:31:44] Package Microsoft.Net.4.8.1.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.                  [4644:0008][2024-06-13T08:31:44] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.        Warning: [4644:0008][2024-06-13T08:31:44] No catalog found at 'C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\catalog.json'                                                        Warning: [4644:0008][2024-06-13T08:31:44] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\d59f2f6e\catalog.previous.json'                                                  [4644:0008][2024-06-13T08:31:44] Adding packages from --add                                                                                                                                                        [4644:0003][2024-06-13T08:31:44] Planning graph selection                                                                                                                                                          [4644:0003][2024-06-13T08:31:44] Graph.PlanSelection completed in 4ms                                                                                                                                              [4644:0003][2024-06-13T08:31:44] Building the required chain                                                                                                                                                       [4644:0003][2024-06-13T08:31:44] Committing graph selection                                                                                                                                                        [4644:0003][2024-06-13T08:31:44] Graph.CommitSelection completed in 3ms                                                                                                                                            [4644:0003][2024-06-13T08:31:44] Updating graph selection                                                                                                                                                          [4644:0003][2024-06-13T08:31:44] Graph.UpdateSelection completed in 10ms                                                                                                                                           [4644:0003][2024-06-13T08:31:44] Notifying VMs with the updated selections: GroupSelected - Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows11SDK.22621 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde                                                                                                                                                                       [4644:000b][2024-06-13T08:31:45] Extension signature validation returned 0 unsigned extensions and 0 invalidly signed extensions.                                                                                  [4644:000b][2024-06-13T08:31:45] No restart manager available. Assuming no reboot required for instance state.                                                                                                     [4644:000b][2024-06-13T08:31:45] No restart manager available. Assuming no reboot required for instance state.                                                                                                     [4644:0004][2024-06-13T08:31:45] ManifestVerifier Result: Success                                                                                                                                                  [4644:0004][2024-06-13T08:31:45] Creating a UnelevatedProductModifier to modify the following packages: Microsoft.VisualStudio.Product.BuildTools Microsoft.VisualStudio.Workload.MSBuildTools Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.Roslyn.Compiler Microsoft.Component.MSBuild Microsoft.VisualStudio.Component.CoreBuildTools Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows11SDK.22621 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core                                                                                                                                                          [4644:0004][2024-06-13T08:31:45] Created a UnelevatedProductModifier                                                                                                                                               [4644:0004][2024-06-13T08:31:45] Decorating UnelevatedProductModifier with UnelevatedInstallerTelemetryDecorator                                                                                                   [4644:0004][2024-06-13T08:31:45] ManifestVerifier Result: Success                                                                                                                                                  [4644:001a][2024-06-13T08:31:45] WebClient error 'RequestCanceled' with 'https://aka.ms/vs/17/release/channel' - ExecuteWithRetryAsync failed along with a cancellation request                                    Warning: [4644:001a][2024-06-13T08:31:45] Failed to get the HttpWebResponse while invoking a HEAD request against https://aka.ms/vs/17/release/channel:System.OperationCanceledException: The operation was canceled.                                                                                                                                                                                                                    at System.Threading.CancellationToken.ThrowOperationCanceledException()                                                                                                                                            at System.Threading.CancellationToken.ThrowIfCancellationRequested()                                                                                                                                               at Microsoft.VisualStudio.Setup.Download.WebRequestService.<>c__DisplayClass9_0.<ExecuteWithRetryAsync>b__0(Object _)                                                                                              at System.Threading.Tasks.Task`1.InnerInvoke()                                                                                                                                                                     at System.Threading.Tasks.Task.Execute()                                                                                                                                                                        --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<MungeUriAsync>d__28.MoveNext()                                                                                                     [4644:001a][2024-06-13T08:31:45] Download requested: https://aka.ms/vs/17/release/channel                                                                                                                          [4644:001b][2024-06-13T08:31:45] Error 0x8013153b: [4644:001b][2024-06-13T08:31:45] Could not update channel "https://aka.ms/vs/17/release/channel"                                                                   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)                                                                                                                                       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<Download>d__27.MoveNext()                                                                                                          --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)                                                                                                                                       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.ChannelDownloader.<GetLatestChannelManifestAsync>d__7.MoveNext()                                                                                                                --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)                                                                                                                                       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.ChannelManager.<UpdateChannelManifestAsync>d__71.MoveNext()                                                                                                                     Warning: [4644:001b][2024-06-13T08:31:45] A task was canceled.                                                                                                                                                     Warning: [4644:0003][2024-06-13T08:31:45] Didn't find any channel feed.                                                                                                                                            Warning: [4644:001b][2024-06-13T08:31:45] Didn't find any channel feed.                                                                                                                                            [4644:001c][2024-06-13T08:31:45] WebClient error 'RequestCanceled' with 'https://aka.ms/vs/channels' - ExecuteWithRetryAsync failed along with a cancellation request                                              Warning: [4644:001c][2024-06-13T08:31:45] Failed to get the HttpWebResponse while invoking a HEAD request against https://aka.ms/vs/channels:System.OperationCanceledException: The operation was canceled.           at System.Threading.CancellationToken.ThrowOperationCanceledException()                                                                                                                                            at System.Threading.CancellationToken.ThrowIfCancellationRequested()                                                                                                                                               at Microsoft.VisualStudio.Setup.Download.WebRequestService.<>c__DisplayClass9_0.<ExecuteWithRetryAsync>b__0(Object _)                                                                                              at System.Threading.Tasks.Task`1.InnerInvoke()                                                                                                                                                                     at System.Threading.Tasks.Task.Execute()                                                                                                                                                                        --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<MungeUriAsync>d__28.MoveNext()                                                                                                     [4644:001c][2024-06-13T08:31:45] Download requested: https://aka.ms/vs/channels                                                                                                                                    Warning: [4644:001d][2024-06-13T08:31:45] Failed to download channels file from https://aka.ms/vs/channels: A task was canceled.                                                                                   [4644:001e][2024-06-13T08:31:45] WebClient error 'RequestCanceled' with 'https://aka.ms/vs/installer/latest/feed' - ExecuteWithRetryAsync failed along with a cancellation request                                 Warning: [4644:001e][2024-06-13T08:31:45] Failed to get the HttpWebResponse while invoking a HEAD request against https://aka.ms/vs/installer/latest/feed:System.OperationCanceledException: The operation was canceled.                                                                                                                                                                                                                 at System.Threading.CancellationToken.ThrowOperationCanceledException()                                                                                                                                            at System.Threading.CancellationToken.ThrowIfCancellationRequested()                                                                                                                                               at Microsoft.VisualStudio.Setup.Download.WebRequestService.<>c__DisplayClass9_0.<ExecuteWithRetryAsync>b__0(Object _)                                                                                              at System.Threading.Tasks.Task`1.InnerInvoke()                                                                                                                                                                     at System.Threading.Tasks.Task.Execute()                                                                                                                                                                        --- End of stack trace from previous location where exception was thrown ---                                                                                                                                          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()                                                                                                                                                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)                                                                                                                  at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<MungeUriAsync>d__28.MoveNext()                                                                                                     [4644:001e][2024-06-13T08:31:45] Download requested: https://aka.ms/vs/installer/latest/feed                                                                                                                       Warning: [4644:001f][2024-06-13T08:31:45] Failed to update the latest installer feed A task was canceled.                                                                                                          Warning: [4644:001f][2024-06-13T08:31:45] Didn't find any channel feed.                                                                                                                                            [4644:000e][2024-06-13T08:31:45] Status changed to NoUpdate                                                                                                                                                        Warning: [4644:000f][2024-06-13T08:31:45] Didn't find any channel feed.                                                                                                                                            Warning: [4644:000b][2024-06-13T08:31:45] Didn't find any channel feed.                                                                                                                                            [4644:0003][2024-06-13T08:31:46] Authenticode verification returned 0x00000000 for path: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe.                                                       Warning: [4644:001d][2024-06-13T08:42:03] No catalog found at 'C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\catalog.json'                                                        Warning: [4644:001d][2024-06-13T08:42:03] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\d59f2f6e\catalog.previous.json'                                                  [4644:001d][2024-06-13T08:42:03] Setup Engine v3.10.2154, Microsoft Windows NT 10.0.22631.0                                                                                                                        [4644:001d][2024-06-13T08:42:03] Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" --includeRecommended --norestart --quiet --add Microsoft.VisualStudio.Workload.VCTools                                                                                                                                      [4644:001d][2024-06-13T08:42:03] Loading packages for instance 'd59f2f6e'                                                                                                                                          [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] DependencyComparer was created without a productArch. productArch will be ignored for dependency comparison.                                                                      [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{AE908327-44FB-449D-BA41-08E7470BC678}' found for package 'Microsoft.VisualCpp.RuntimeDebug.14.ARM64,version=14.38.33135,chip=x64,machinearch=arm64'      [4644:001d][2024-06-13T08:42:04] Compatible package version is less than or equal to the package version. Code '{AE908327-44FB-449D-BA41-08E7470BC678}' will not be used for repair/uninstall attempts.            Warning: [4644:001d][2024-06-13T08:42:04] Windows Installer found the package 'Microsoft.VisualCpp.RuntimeDebug.14.ARM64,version=14.38.33135,chip=x64,machinearch=arm64' superseded but corresponding compatible package information was not found. Attempts to repair will be skipped and that to uninstall may leave the cache behind.                                                                                              [4644:001d][2024-06-13T08:42:04] Switching package detection state from 'Superseded' to 'Absent' since package version '17.9.34511.75' is greater than installed version '17.0.125.0'                              [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{BC5E8A94-8759-4DDF-96BE-BDF3661487E2}' found for package 'Microsoft.VisualStudio.MinShell.Msi,version=17.9.34714.143,productarch=arm64'                  [4644:001d][2024-06-13T08:42:04] Compatible package version is less than or equal to the package version. Code '{BC5E8A94-8759-4DDF-96BE-BDF3661487E2}' will not be used for repair/uninstall attempts.            [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{BC5E8A94-8759-4DDF-96BE-BDF3661487E2}' found for package 'Microsoft.VisualStudio.MinShell.Msi,version=17.9.34714.143,productarch=x64'                    [4644:001d][2024-06-13T08:42:04] Compatible package version is less than or equal to the package version. Code '{BC5E8A94-8759-4DDF-96BE-BDF3661487E2}' will not be used for repair/uninstall attempts.            [4644:001d][2024-06-13T08:42:04] Switching package detection state from 'Superseded' to 'Absent' since package version '17.9.34714.143' is greater than installed version '17.9.34714'                             [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{5E604E90-FC2E-4F1E-8A11-CADE26DB5D64}' found for package 'Microsoft.VisualStudio.Community.Msi,version=17.9.34714.143,machinearch=x86'                   [4644:001d][2024-06-13T08:42:04] Compatible package version is less than or equal to the package version. Code '{5E604E90-FC2E-4F1E-8A11-CADE26DB5D64}' will not be used for repair/uninstall attempts.            [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{2C897543-D940-0177-58DE-0D00653DE0B2}' found for package 'Microsoft.Windows.UniversalCRT.Tools.Msi,version=10.0.26624,chip=x64'                          [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{384A28F5-6B08-01FB-BE75-EBC673BBCACF}' found for package 'Microsoft.Windows.UniversalCRT.Tools.Msi,version=10.0.26624,chip=x86'                          [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:001d][2024-06-13T08:42:04] Loaded existing instance for product 'Microsoft.VisualStudio.Product.BuildTools,version=17.9.34723.18'                                                                            [4644:001d][2024-06-13T08:42:04] Telemetry property VS.SetupEngine.Id : VisualStudio/17.9.5+34723.18                                                                                                               [4644:001d][2024-06-13T08:42:04] Telemetry property VS.SetupEngine.Branch : d17.9                                                                                                                                  [4644:001d][2024-06-13T08:42:04] Telemetry property VS.SetupEngine.BuildNumber : 17.9.34723.18                                                                                                                     [4644:001d][2024-06-13T08:42:04] Telemetry property VS.SetupEngine.InstanceId : d59f2f6e                                                                                                                           [4644:001d][2024-06-13T08:42:04] Telemetry property VS.SetupEngine.EngineVersion : 3.10.2154.60269                                                                                                                 [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{2C897543-D940-0177-58DE-0D00653DE0B2}' found for package 'Microsoft.Windows.UniversalCRT.Tools.Msi,version=10.0.26624,chip=x64'                          [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:001d][2024-06-13T08:42:04] Package Microsoft.Windows.UniversalCRT.Msu.7 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.                          [4644:001d][2024-06-13T08:42:04] Package Microsoft.Windows.UniversalCRT.Msu.8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.2,6.3)'.                          [4644:001d][2024-06-13T08:42:04] Package Microsoft.Windows.UniversalCRT.Msu.81 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.3,6.4)'.                         [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.Debugger.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.                  [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{2C897543-D940-0177-58DE-0D00653DE0B2}' found for package 'Microsoft.Windows.UniversalCRT.Tools.Msi,version=10.0.26624,chip=x64'                          [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.FullRedist.20H2 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.               [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.17763]'.                         [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.KB5003306 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.18362,10.0.18363]'.                     [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.KB5003304 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19041,10.0.19042)'.                     [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.1.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.                  [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.        [4644:001d][2024-06-13T08:42:04] Package Microsoft.Windows.UniversalCRT.Msu.7 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.                          [4644:001d][2024-06-13T08:42:04] Package Microsoft.Windows.UniversalCRT.Msu.8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.2,6.3)'.                          [4644:001d][2024-06-13T08:42:04] Package Microsoft.Windows.UniversalCRT.Msu.81 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.3,6.4)'.                         [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.Debugger.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.                  [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.           [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{2C897543-D940-0177-58DE-0D00653DE0B2}' found for package 'Microsoft.Windows.UniversalCRT.Tools.Msi,version=10.0.26624,chip=x64'                          [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.FullRedist.20H2 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.               [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.17763]'.                         [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.KB5003306 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.18362,10.0.18363]'.                     [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.KB5003304 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19041,10.0.19042)'.                     [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{417B3118-9B7D-44B2-9AE8-B309A107636B}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x86'                     [4644:001d][2024-06-13T08:42:04] Compatible ProductCode '{85D9FDA9-B82F-4DC6-A598-DC5EEE78ABFB}' found for package 'Microsoft.NetCore.SharedHost.8.0.0,version=17.9.34629.179,machinearch=x64'                     [4644:001d][2024-06-13T08:42:04] Package Microsoft.Net.4.8.1.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[10.0.19042,10.0.22000]'.                  [4644:001d][2024-06-13T08:42:04] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.        Warning: [4644:001d][2024-06-13T08:42:05] No catalog found at 'C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\catalog.json'                                                        Warning: [4644:001d][2024-06-13T08:42:05] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\d59f2f6e\catalog.previous.json'                                                  [4644:001d][2024-06-13T08:42:05] Shutting down the application with exit code 0                                                                                                                                    [4644:0001][2024-06-13T08:42:05] Releasing singleton lock.                                                                                                                                                         [4644:0001][2024-06-13T08:42:05] Releasing singleton lock succeed.                                                                                                                                                 [4644:0001][2024-06-13T08:42:05] Releasing singleton lock.                                                                                                                                                         [4644:0001][2024-06-13T08:42:05] Singleton lock does not exist. Releasing singleton lock skipped.                                                                                                                  Warning: [4644:0012][2024-06-13T08:42:05] No catalog found at 'C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\catalog.json'                                                        Warning: [4644:0012][2024-06-13T08:42:05] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\d59f2f6e\catalog.previous.json'                                                  [4644:0013][2024-06-13T08:42:05] Status changed to NoUpdate                                                                                                                                                        Warning: [4644:001d][2024-06-13T08:42:05] Didn't find any channel feed.                                                                                                                                            Warning: [4644:0001][2024-06-13T08:42:05] Didn't find any channel feed.                                                                                                                                            [4644:0001][2024-06-13T08:42:05] Closing the installer with exit code 0                                                                                                                                            [4644:0001][2024-06-13T08:42:05] Exit Code: 0                                                                                                                                                                      [4644:0001][2024-06-13T08:42:05] Cleared previous session ID.                                                                                                                                                      [4644:0001][2024-06-13T08:42:10] Exception occurred while trying to write telemetry session to the network. The operation was canceled.    at System.Threading.CancellationToken.ThrowOperationCanceledException()    at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)                                                                                                      at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)                                                                                                at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)                                                                                                        at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)                                                                                                                at Microsoft.VisualStudio.Setup.Services.Telemetry.FlushTelemetrySession(Boolean shouldRecreate)                                                                                                                [4644:0001][2024-06-13T08:42:10] Trying to remove channel manifest: C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\installChannelManifest.json                                     [4644:0001][2024-06-13T08:42:10] Trying to remove product manifest: C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\1ace0436\install_catalog.json                                            Warning: [4644:0001][2024-06-13T08:42:10] Didn't find any channel feed.                                                                                                                                            visualstudio2022-workload-vctools has been installed.                                                                                                                                                                visualstudio2022-workload-vctools may be able to be automatically uninstalled.                                                                                                                                    The install of visualstudio2022-workload-vctools was successful.                                                                                                                                                    Software install location not explicitly set, it could be in package or                                                                                                                                            default install location of installer.                                                                                                                                                                                                                                                                                                                                                                                              Chocolatey installed 4/4 packages.                                                                                                                                                                                  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Draikth commented 1 month ago

Tried to do the ESLint again and seems to be the same failure.

the second line, pnpm upleveled-eslint-install had a red circle with a cross in it...

$ pnpm add --save-dev eslint-config-upleveled@latest
pnpm upleveled-eslint-install
 WARN  2 deprecated subdependencies found: @humanwhocodes/config-array@0.13.0, @humanwhocodes/object-schema@2.0.3
Already up to date
Progress: resolved 530, reused 503, downloaded 0, added 0, done
 WARN  Issues with peer dependencies found
.
├─┬ eslint-plugin-import 2.29.1
│ └── ✕ unmet peer eslint@"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8": found 9.3.0
└─┬ eslint-config-upleveled 8.2.1
  ├── ✕ unmet peer eslint@^9.4.0: found 9.3.0
  ├── ✕ unmet peer @types/node@>=20.14.2: found 20.12.13
  ├── ✕ unmet peer globals@^15.4.0: found 14.0.0
  ├─┬ eslint-plugin-import-x 0.5.1
  │ └─┬ @typescript-eslint/utils 7.11.0
  │   └── ✕ unmet peer eslint@^8.56.0: found 9.3.0
  ├─┬ eslint-plugin-jsx-a11y 6.8.0
  │ └── ✕ unmet peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8": found 9.3.0
  ├─┬ eslint-plugin-react 7.34.2
  │ └── ✕ unmet peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8": found 9.3.0
  ├─┬ eslint-plugin-testing-library 6.2.2
  │ ├── ✕ unmet peer eslint@"^7.5.0 || ^8.0.0": found 9.3.0
  │ └─┬ @typescript-eslint/utils 5.62.0
  │   └── ✕ unmet peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0": found 9.3.0
  └─┬ eslint-plugin-react-hooks 4.6.2
    └── ✕ unmet peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0": found 9.3.0

Done in 9.9s
Detected project type: Next.js with PostgreSQL
Installing 4 ESLint config dependencies...
 WARN  8 deprecated subdependencies found: @humanwhocodes/config-array@0.13.0, @humanwhocodes/object-schema@2.0.3, are-we-there-yet@2.0.0, gauge@3.0.2, glob@7.2.3, inflight@1.0.6, npmlog@5.0.1, rimraf@3.0.2
Packages: +117
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 669, reused 619, downloaded 1, added 1, done
node_modules/.pnpm/libpg-query@15.2.0_encoding@0.1.13/node_modules/libpg-query: Running install scripnode_modules/.pnpm/libpg-query@15.2.0_encoding@0.1.13/node_modules/libpg-query: Running install script, failed in 11.9s
.../node_modules/libpg-query install$ node-pre-gyp install --fallback-to-build --loglevel verbose    
│ 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\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\@ma…  
│ node-pre-gyp verb cli   'install',
│ node-pre-gyp verb cli   '--fallback-to-build',
│ node-pre-gyp verb cli   '--loglevel',
│ node-pre-gyp verb cli   'verbose'
│ node-pre-gyp verb cli ]
│ node-pre-gyp info using node-pre-gyp@1.0.11
│ node-pre-gyp info using node@20.12.1 | win32 | x64
│ node-pre-gyp verb command install []
│ node-pre-gyp info check checked for "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnp…  
│ node-pre-gyp http GET https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node…  
│ node-pre-gyp ERR! install response status 404 Not Found on https://supabase-public-artifacts-buc…  
│ node-pre-gyp WARN Pre-built binaries not installable for libpg-query@15.2.0 and node@20.12.1 (no…  
│ node-pre-gyp WARN Hit error response status 404 Not Found on https://supabase-public-artifacts-b…  
│ node-pre-gyp verb command build [ 'rebuild' ]
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.12.1 | 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:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modul…  
│ gyp verb cli 'configure',
│ gyp verb cli '--fallback-to-build',
│ gyp verb cli '--loglevel=verbose',
│ gyp verb cli '--module=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg…  
│ gyp verb cli '--module_name=queryparser',
│ gyp verb cli '--module_path=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\…  
│ 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-v115'
│ gyp verb cli ]
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.12.1 | 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 verb find Python - executable path is "C:\Python312\python.exe"
│ gyp verb find Python - executing "C:\Python312\python.exe" to get version
│ gyp verb find Python - version is "3.12.4"
│ gyp info find Python using Python version 3.12.4 found at "C:\Python312\python.exe"
│ gyp verb get node dir no --target version specified, falling back to host node version: 20.12.1    
│ gyp verb install input version string "20.12.1"
│ gyp verb install installing version: 20.12.1
│ 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: 20.12.1
│ gyp verb build dir attempting to create "build" dir: C:\Users\User\projects\nextjs-ecomm-store\n…  
│ gyp verb build dir "build" dir needed to be created? Yes
│ gyp verb find VS msvs_version not set from command line or npm config
│ gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running wi…  
│ gyp verb find VS
│ gyp verb find VS Failure details: undefined
│ gyp verb find VS checking VS2022 (17.9.34723.18) found at:
│ gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp verb find VS - found "Visual Studio C++ core features"
│ gyp verb find VS - found VC++ toolset: v143
│ gyp verb find VS - found Windows SDK: 10.0.22621.0
│ gyp info find VS using VS2022 (17.9.34723.18) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp info find VS run with --verbose for detailed information
│ gyp verb build/config.gypi creating config file
│ gyp verb build/config.gypi writing out config file: C:\Users\User\projects\nextjs-ecomm-store\no…  
│ gyp verb config.gypi checking for gypi file: C:\Users\User\projects\nextjs-ecomm-store\node_modu…  
│ gyp verb common.gypi checking for gypi file: C:\Users\User\projects\nextjs-ecomm-store\node_modu…  
│ gyp verb gyp gyp format was not specified; forcing "msvs"
│ gyp info spawn C:\Python312\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\nod…  
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-q…  
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\nod…  
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\20.12.1\\include\\node\\c…  
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\20.12.1',   
│ gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9…  
│ gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\User\\\\AppData\\\\Local\\\\node-gyp\\\\Cach…  
│ gyp info spawn args '-Dmodule_root_dir=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modul…  
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg-q…  
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ 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:\\Users\\User\\AppData\\Local\\node\\corepack\\v1\\pnpm\\9.3.0\\dist\\node_modul…  
│ gyp verb cli 'build',
│ gyp verb cli '--fallback-to-build',
│ gyp verb cli '--loglevel=verbose',
│ gyp verb cli '--module=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\libpg…  
│ gyp verb cli '--module_name=queryparser',
│ gyp verb cli '--module_path=C:\\Users\\User\\projects\\nextjs-ecomm-store\\node_modules\\.pnpm\\…  
│ 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-v115'
│ gyp verb cli ]
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.12.1 | win32 | x64
│ gyp verb build type Release
│ gyp verb architecture x64
│ gyp verb node dev dir C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1
│ gyp verb python C:\Python312\python.exe
│ gyp verb found first Solution file build\binding.sln
│ gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\C…  
│ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bi…  
│ gyp info spawn args [
│ gyp info spawn args 'build\\binding.sln',
│ gyp info spawn args '/nologo',
│ gyp info spawn args '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ Build started 13/06/2024 09:26:34.
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encodin…  
│ ValidateSolutionConfiguration:
│   Building solution configuration "Release|x64".
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encodin…  
│ PrepareForBuild:
│   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hi…  
│   Creating directory "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@1…  
│ InitializeBuildStatus:
│   Creating "Release\obj\nothing\nothing.tlog\unsuccessfulbuild" because "AlwaysCreate" was speci…  
│   Touching "Release\obj\nothing\nothing.tlog\unsuccessfulbuild".
│ ClCompile:
│   All outputs are up-to-date.
│   All outputs are up-to-date.
│ Lib:
│   C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\H…  
│   "Release\obj\nothing\\node-addon-api@7.1.0\node_modules\node-addon-api\nothing.obj"
│   nothing.vcxproj -> C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15…  
│ FinalizeBuildStatus:
│   Deleting file "Release\obj\nothing\nothing.tlog\unsuccessfulbuild".
│   Touching "Release\obj\nothing\nothing.tlog\nothing.lastbuildstate".
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@…  
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encodin…  
│ Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encodin…  
│ PrepareForBuild:
│   Creating directory "Release\obj\queryparser\".
│   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hi…  
│   Creating directory "Release\obj\queryparser\queryparser.tlog\".
│ InitializeBuildStatus:
│   Creating "Release\obj\queryparser\queryparser.tlog\unsuccessfulbuild" because "AlwaysCreate" w…  
│   Touching "Release\obj\queryparser\queryparser.tlog\unsuccessfulbuild".
│ CustomBuild:
│   prebuild_dependencies
│   Cloning into 'libpg_query'...
│   Note: switching to 'db39825bc7c1ddd45962ec6a626d740b7f8f027a'.
│
│   You are in 'detached HEAD' state. You can look around, make experimental
│   changes and commit them, and you can discard any commits you make in this
│   state without impacting any branches by switching back to a branch.
│
│   If you want to create a new branch to retain commits you create, you may
│   do so (now or later) by using -c with the switch command. Example:
│
│     git switch -c <new-branch-name>
│
│   Or undo this operation with:
│
│     git switch -
│
│   Turn off this advice by setting config variable advice.detachedHead to false
│
│   HEAD is now at db39825 Update changelog, prepare `15-4.2.4` release (#227)
│   "please ensure you are running at Windows Developer Command Prompt environments"
│
│   Microsoft (R) Program Maintenance Utility Version 14.39.33523.0
│   Copyright (C) Microsoft Corporation.  All rights reserved.
│
│ NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm-s…  
│   Stop.
│
│   Microsoft (R) Program Maintenance Utility Version 14.39.33523.0
│   Copyright (C) Microsoft Corporation.  All rights reserved.
│
│ NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm-s…  
│   Stop.
│ CUSTOMBUILD : error : 'nmake' command failed [C:\Users\User\projects\nextjs-ecomm-store\node_mod…  
│   File Not Found
│   "ERROR: pg_query.lib not found"
│   The system cannot find the file specified.
│           1 file(s) copied.
│ C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microso…  
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@…  
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@…  
│ Done Building Project "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@…  
│ Build FAILED.
│ "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13…  
│ "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13…  
│ "C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13…  
│ (CustomBuild target) ->
│   NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm…  
│   NMAKE : fatal error U1052: file 'Makefile.msvc' not found [C:\Users\User\projects\nextjs-ecomm…  
│   CUSTOMBUILD : error : 'nmake' command failed [C:\Users\User\projects\nextjs-ecomm-store\node_m…  
│   C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Micro…  
│     0 Warning(s)
│     4 Error(s)
│ Time Elapsed 00:00:07.18
│ gyp ERR! build error
│ gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Cu…
│ gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\User\AppData\Local\node\corepack\v1\pnpm\9.…  
│ gyp ERR! stack at ChildProcess.emit (node:events:518:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
│ gyp ERR! System Windows_NT 10.0.22631
│ gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\Local\\node\\c…  
│ gyp ERR! cwd C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_enc…  
│ gyp ERR! node -v v20.12.1
│ gyp ERR! node-gyp -v v10.1.0
│ gyp ERR! not ok
│ node-pre-gyp ERR! build error
│ node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\User…  
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\User\projects\nextjs-ecomm-sto…  
│ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
│ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
│ node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)     
│ node-pre-gyp ERR! System Windows_NT 10.0.22631
│ node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\projects\\next…  
│ node-pre-gyp ERR! cwd C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@1…  
│ node-pre-gyp ERR! node -v v20.12.1
│ node-pre-gyp ERR! node-pre-gyp -v v1.0.11
│ node-pre-gyp ERR! not ok
│ Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\User\AppData\Local\node\corepack\v1…  
└─ Failed in 11.9s at C:\Users\User\projects\nextjs-ecomm-store\node_modules\.pnpm\libpg-query@15.2.0_encoding@0.1.13\node_modules\libpg-query
 ELIFECYCLE  Command failed with exit code 1.
node:internal/errors:984
  const err = new Error(message);
              ^

Error: Command failed: pnpm add --save-dev @ts-safeql/eslint-plugin libpg-query prettier-plugin-embed prettier-plugin-sql
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at file:///C:/Users/User/projects/nextjs-ecomm-store/node_modules/.pnpm/eslint-config-upleveled@8.2.1_@babel+core@7.24.6_@types+eslint@8.56.10_@types+node@20.12.13_@_rhlrwx2pmjlwgy5t5zzhx6eroq/node_modules/eslint-config-upleveled/bin/install.js:138:1
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 13568,
  stdout: null,
  stderr: null
}

Node.js v20.12.1
karlhorky commented 1 month ago

Seems like this is a current active bug with libpg-query:

Let's continue discussion over there.

There is also a workaround over there:

pnpm remove libpg-query
pnpm add --save-dev libpg-query@16.2.0
karlhorky commented 1 week ago

I'll reopen this to track this, as it appears to be an active issue still on Windows systems.