(Please note that this is not a duplicate of Error C7626: Unnamed class used in typedef name cannot declare members other than non-static data members, since it is happening in an external library, which I cannot modify, and is machine-dependent.)
I’m trying to build this repo: https://github.com/FlameWolf/quip-api, and I get the below error when running npm install
:
npm error code 1
npm error path C:Users******sourcereposquip-apinode_modulescld
npm error command failed
npm error command C:Windowssystem32cmd.exe /d /s /c node-gyp rebuild
npm error cldutil.cc
npm error C:Users******sourcereposquip-apinode_modulesclddepscldinternalscoreonescriptspan.h(117,16): error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes [C:Users******sourcereposquip-apinode_modulescldbuilddepscldcld-c.vcxproj]
npm error (compiling source file '../../../deps/cld/internal/cldutil.cc')
npm error
npm error C:Users******sourcereposquip-apinode_modulesclddepscldinternalscoreonescriptspan.h(132,16): error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes [C:Users******sourcereposquip-apinode_modulescldbuilddepscldcld-c.vcxproj]
npm error (compiling source file '../../../deps/cld/internal/cldutil.cc')
npm error
npm error C:Users******sourcereposquip-apinode_modulesclddepscldinternalscoreonescriptspan.h(186,16): error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes [C:Users******sourcereposquip-apinode_modulescldbuilddepscldcld-c.vcxproj]
npm error (compiling source file '../../../deps/cld/internal/cldutil.cc')
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp info find Python using Python version 3.12.6 found at "C:Python312python.exe"
npm error (node:6376) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time
npm error (Use `node --trace-warnings ...` to show where the warning was created)
npm error gyp info find VS using VS2022 (17.11.35327.3) found at:
npm error gyp info find VS "C:Program FilesMicrosoft Visual Studio2022Community"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp info spawn C:Python312python.exe
npm error gyp info spawn args [
npm error gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'msvs',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\Users\******\source\repos\quip-api\node_modules\cld\build\config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\Users\******\AppData\Local\node-gyp\Cache\23.0.0\include\node\common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=C:\Users\******\AppData\Local\node-gyp\Cache\23.0.0',
npm error gyp info spawn args '-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=C:\\Users\\******\\AppData\\Local\\node-gyp\\Cache\\23.0.0\\<(target_arch)\\node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=C:\Users\******\source\repos\quip-api\node_modules\cld',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'C:\Users\******\source\repos\quip-api\node_modules\cld\build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn C:Program FilesMicrosoft Visual Studio2022CommunityMSBuildCurrentBinMSBuild.exe
npm error gyp info spawn args [
npm error gyp info spawn args 'build\binding.sln',
npm error gyp info spawn args '/clp:Verbosity=minimal',
npm error gyp info spawn args '/nologo',
npm error gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm error gyp info spawn args ]
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `C:Program FilesMicrosoft Visual Studio2022CommunityMSBuildCurrentBinMSBuild.exe` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:216:23)
npm error gyp ERR! stack at ChildProcess.emit (node:events:507:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Windows_NT 10.0.22631
npm error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm error gyp ERR! cwd C:Users******sourcereposquip-apinode_modulescld
npm error gyp ERR! node -v v23.0.0
npm error gyp ERR! node-gyp -v v10.2.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: C:Users******AppDataLocalnpm-cache_logs2024-11-06T17_28_31_391Z-debug-0.log
Can anyone help with this?