-
Notifications
You must be signed in to change notification settings - Fork 279
Open
Description
VS Build Tools 2022 17.14.13
Desktop Development with C++ is installed together with Spectre libs, ATL, MFC and so on
Node version is 24.6.0
The output is:
npm error path C:\projects\test-project\node_modules\node-pty
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm error conpty.cc
npm error C:\projects\test-project\node_modules\nan\nan.h(1173,27): warning C4996: 'v8::String::WriteUtf8': Use WriteUtf8V2 instead. [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error (compiling source file '../src/win/conpty.cc')
npm error
npm error C:\projects\test-project\node_modules\nan\nan.h(2418,18): warning C4996: 'node::Encode': was declared deprecated [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error (compiling source file '../src/win/conpty.cc')
npm error
npm error C:\projects\test-project\node_modules\nan\nan.h(2423,18): warning C4996: 'node::Encode': was declared deprecated [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error (compiling source file '../src/win/conpty.cc')
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(127,5): error C2065: 'PFNCREATEPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(127,28): error C2143: syntax error: missing ';' before 'const' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(127,28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(127,47): error C2065: 'PFNCREATEPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(127,70): error C2146: syntax error: missing ';' before identifier 'GetProcAddress' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(145,14): error C2064: term does not evaluate to a function taking 5 arguments [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(409,7): error C2065: 'PFNRESIZEPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(409,30): error C2143: syntax error: missing ';' before 'const' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(409,30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(409,62): error C2065: 'PFNRESIZEPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(409,85): error C2146: syntax error: missing ';' before identifier 'GetProcAddress' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(413,9): error C2064: term does not evaluate to a function taking 2 arguments [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(439,7): error C2065: 'PFNCLEARPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(439,29): error C2143: syntax error: missing ';' before 'const' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(439,29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(439,60): error C2065: 'PFNCLEARPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(439,82): error C2146: syntax error: missing ';' before identifier 'GetProcAddress' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(442,9): error C2064: term does not evaluate to a function taking 1 arguments [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(468,7): error C2065: 'PFNCLOSEPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(468,29): error C2143: syntax error: missing ';' before 'const' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(468,29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(468,60): error C2065: 'PFNCLOSEPSEUDOCONSOLE': undeclared identifier [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(468,82): error C2146: syntax error: missing ';' before identifier 'GetProcAddress' [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\conpty.cc(471,9): error C2064: term does not evaluate to a function taking 1 arguments [C:\projects\test-project\node_modules\node-pty\build\conpty.vcxproj]
npm error conpty_console_list.cc
npm error C:\projects\test-project\node_modules\nan\nan.h(1173,27): warning C4996: 'v8::String::WriteUtf8': Use WriteUtf8V2 instead. [C:\projects\test-project\node_modules\node-pty\build\conpty_console_list.vcxproj]
npm error (compiling source file '../src/win/conpty_console_list.cc')
npm error
npm error C:\projects\test-project\node_modules\nan\nan.h(2418,18): warning C4996: 'node::Encode': was declared deprecated [C:\projects\test-project\node_modules\node-pty\build\conpty_console_list.vcxproj]
npm error (compiling source file '../src/win/conpty_console_list.cc')
npm error
npm error C:\projects\test-project\node_modules\nan\nan.h(2423,18): warning C4996: 'node::Encode': was declared deprecated [C:\projects\test-project\node_modules\node-pty\build\conpty_console_list.vcxproj]
npm error (compiling source file '../src/win/conpty_console_list.cc')
npm error
npm error C:\Users\Default User\AppData\Local\node-gyp\Cache\24.6.0\include\node\v8-internal.h(174,18): warning C4018: '<=': signed/unsigned mismatch [C:\projects\test-project\node_modules\node-pty\build\conpty_console_list.vcxproj]
npm error (compiling source file '../src/win/conpty_console_list.cc')
npm error C:\Users\Default User\AppData\Local\node-gyp\Cache\24.6.0\include\node\v8-internal.h(174,18):
npm error the template instantiation context (the oldest one first) is
npm error C:\Users\Default User\AppData\Local\node-gyp\Cache\24.6.0\include\node\v8-function-callback.h(479,48):
npm error see reference to function template instantiation 'std::optional<v8::internal::Address> v8::internal::Internals::TryIntegralToSmi<uint32_t,0x0>(T)' being compiled
npm error with
npm error [
npm error T=uint32_t
npm error ]
npm error C:\Users\Default User\AppData\Local\node-gyp\Cache\24.6.0\include\node\v8-internal.h(1066,9):
npm error see reference to function template instantiation 'bool v8::internal::SmiTagging<8>::IsValidSmi<T,0x0>(T)' being compiled
npm error with
npm error [
npm error T=uint32_t
npm error ]
npm error
npm error win_delay_load_hook.cc
npm error Generating code
npm error Previous IPDB not found, fall back to full compilation.
npm error All 243 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
npm error Finished generating code
npm error conpty_console_list.vcxproj -> C:\projects\test-project\node_modules\node-pty\build\Release\\conpty_console_list.node
npm error Agent.cc
npm error AgentCreateDesktop.cc
npm error ConsoleFont.cc
npm error ConsoleInput.cc
npm error ConsoleInputReencoding.cc
npm error ConsoleLine.cc
npm error DebugShowInput.cc
npm error DefaultInputMap.cc
npm error EventLoop.cc
npm error InputMap.cc
npm error LargeConsoleRead.cc
npm error NamedPipe.cc
npm error Scraper.cc
npm error Terminal.cc
npm error Win32Console.cc
npm error Win32ConsoleBuffer.cc
npm error main.cc
npm error BackgroundDesktop.cc
npm error Buffer.cc
npm error DebugClient.cc
npm error GenRandom.cc
npm error OwnedHandle.cc
npm error StringUtil.cc
npm error WindowsSecurity.cc
npm error WindowsVersion.cc
npm error WinptyAssert.cc
npm error WinptyException.cc
npm error WinptyVersion.cc
npm error win_delay_load_hook.cc
npm error Generating code
npm error Previous IPDB not found, fall back to full compilation.
npm error C:\projects\test-project\node_modules\node-pty\deps\winpty\src\agent\Agent.cc(231):
warning C4722: 'Agent::~Agent': destructor never returns, potential memory leak [C:\projects\test-project\node_modules\node-pty\build\deps\winpty\src\winpty-agent.vcxproj]
npm error All 1818 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
npm error Finished generating code
npm error winpty-agent.vcxproj -> C:\projects\test-project\node_modules\node-pty\build\Release\\winpty-agent.exe
npm error AgentLocation.cc
npm error winpty.cc
npm error BackgroundDesktop.cc
npm error Buffer.cc
npm error DebugClient.cc
npm error GenRandom.cc
npm error OwnedHandle.cc
npm error StringUtil.cc
npm error WindowsSecurity.cc
npm error WindowsVersion.cc
npm error WinptyAssert.cc
npm error WinptyException.cc
npm error WinptyVersion.cc
npm error win_delay_load_hook.cc
npm error Creating library C:\projects\test-project\node_modules\node-pty\build\Release\winpty.lib and object C:\projects\test-project\node_modules\node-pty\build\Release\winpty.exp
npm error Generating code
npm error Previous IPDB not found, fall back to full compilation.
npm error All 1071 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
npm error Finished generating code
npm error winpty.vcxproj -> C:\projects\test-project\node_modules\node-pty\build\Release\\winpty.dll
npm error winpty.cc
npm error C:\projects\test-project\node_modules\nan\nan.h(1173,27): warning C4996: 'v8::String::WriteUtf8': Use WriteUtf8V2 instead. [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error (compiling source file '../src/win/winpty.cc')
npm error
npm error C:\projects\test-project\node_modules\nan\nan.h(2418,18): warning C4996: 'node::Encode': was declared deprecated [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error (compiling source file '../src/win/winpty.cc')
npm error
npm error C:\projects\test-project\node_modules\nan\nan.h(2423,18): warning C4996: 'node::Encode': was declared deprecated [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error (compiling source file '../src/win/winpty.cc')
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(43,19): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(43,19): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(54,9): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(54,9): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(109,26): warning C4018: '<': signed/unsigned mismatch [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(220,99): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(220,99): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(221,88): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(221,88): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(218,25): error C2362: initialization of 'marshal' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(209,8): error C2362: initialization of 'spawnSuccess' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(208,10): error C2362: initialization of 'handle' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(200,26): error C2362: initialization of 'config' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(188,13): error C2362: initialization of 'pc' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(177,20): error C2362: initialization of 'winpty_config' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(176,22): error C2362: initialization of 'error_ptr' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(170,8): error C2362: initialization of 'debug' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(169,7): error C2362: initialization of 'rows' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(168,7): error C2362: initialization of 'cols' is skipped by 'goto cleanup' [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(238,1):
npm error see declaration of 'cleanup'
npm error
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(285,27): warning C4312: 'type cast': conversion from 'T' to 'HANDLE' of greater size [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(285,27): warning C4312: with [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(285,27): warning C4312: [ [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(285,27): warning C4312: T=int32_t [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error C:\projects\test-project\node_modules\node-pty\src\win\winpty.cc(285,27): warning C4312: ] [C:\projects\test-project\node_modules\node-pty\build\pty.vcxproj]
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.2.0
npm error gyp info using node@24.6.0 | win32 | x64
npm error gyp info find Python using Python version 3.13.7 found at "C:\Python313\python.exe"
npm error gyp info find VS using VS2022 (17.14.36414.22) found at:
npm error gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp info spawn C:\Python313\python.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:\\projects\\test-project\\node_modules\\node-pty\\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\\Default User\\AppData\\Local\\node-gyp\\Cache\\24.6.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\\Default User\\AppData\\Local\\node-gyp\\Cache\\24.6.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\\\\Default User\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\24.6.0\\\\<(target_arch)\\\\node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=C:\\projects\\test-project\\node_modules\\node-pty',
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:\\projects\\test-project\\node_modules\\node-pty\\build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.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 '/nodeReuse:false',
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 Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:219:23)
npm error gyp ERR! stack at ChildProcess.emit (node:events:508: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.19045
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:\projects\test-project\node_modules\node-pty
npm error gyp ERR! node -v v24.6.0
npm error gyp ERR! node-gyp -v v11.2.0
npm error gyp ERR! not ok```
Metadata
Metadata
Assignees
Labels
No labels