Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help~ try to build msnodesqlv8, failed! #344

Open
hhyyy9 opened this issue Sep 24, 2024 · 1 comment
Open

Help~ try to build msnodesqlv8, failed! #344

hhyyy9 opened this issue Sep 24, 2024 · 1 comment

Comments

@hhyyy9
Copy link

hhyyy9 commented Sep 24, 2024

node-gyp rebuild --verbose
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:\Program Files\nodejs\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose'
gyp verb cli ]
gyp info using node-gyp@10.2.0
gyp info using node@22.9.0 | win32 | x64
gyp verb clean removing "build" directory
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:\Users\hhyyy\AppData\Local\Programs\Python\Python312\python.exe"
gyp verb find Python - executing "C:\Users\hhyyy\AppData\Local\Programs\Python\Python312\python.exe" to get version
gyp verb find Python - version is "3.12.6"
gyp info find Python using Python version 3.12.6 found at "C:\Users\hhyyy\AppData\Local\Programs\Python\Python312\python.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 22.9.0

gyp verb install input version string "22.9.0"
gyp verb install installing version: 22.9.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 22.9.0
gyp verb ensuring devDir is created C:\Users\hhyyy\AppData\Local\node-gyp\Cache\22.9.0
gyp verb created devDir \?\C:\Users\hhyyy\AppData\Local\node-gyp\Cache\22.9.0
gyp http GET https://nodejs.org/download/release/v22.9.0/node-v22.9.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v22.9.0/node-v22.9.0-headers.tar.gz
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-platform.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-local-handle.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-script.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-debug.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-value.h
gyp verb extracted file from tarball node-v22.9.0/include/node/node_api.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/posix.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/threadpool.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/win.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/bsd.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/sunos.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/aix.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/tree.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/os390.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/unix.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/linux.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/errno.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/darwin.h
gyp verb extracted file from tarball node-v22.9.0/include/node/uv/version.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-array-buffer.h
gyp verb extracted file from tarball node-v22.9.0/include/node/config.gypi
gyp verb extracted file from tarball node-v22.9.0/include/node/zlib.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-embedder-heap.h
gyp verb extracted file from tarball node-v22.9.0/include/node/zconf.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-locker.h
gyp verb extracted file from tarball node-v22.9.0/include/node/v8-function-callback.h
...
...
<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8',
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:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\hhyyy\AppData\Local\node-gyp\Cache\22.9.0
gyp verb python C:\Users\hhyyy\AppData\Local\Programs\Python\Python312\python.exe
gyp verb found first Solution file build\binding.sln
gyp verb using MSBuild: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\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 24/09/2024 11:57:18 am.

Project "C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build\binding.sln" (1) is building "C:\Works\Projec
ts\trainingload-new\node_modules\msnodesqlv8\build\sqlserverv8.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "Release\obj\sqlserverv8".
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\sqlserverv8\sqlserverv8.tlog".
InitializeBuildStatus:
Creating "Release\obj\sqlserverv8\sqlserverv8.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "Release\obj\sqlserverv8\sqlserverv8.tlog\unsuccessfulbuild".
CustomBuild:
print_variables
'"echo"' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): er
ror MSB8066: Custom build for '..\binding.gyp' exited with code 1. [C:\Works\Projects\trainingload-new\node_modules\msno
desqlv8\build\sqlserverv8.vcxproj]
Done Building Project "C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build\sqlserverv8.vcxproj" (default t
argets) -- FAILED.

Done Building Project "C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build\binding.sln" (default targets)
-- FAILED.

Build FAILED.

"C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build\binding.sln" (default target) (1) ->
"C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8\build\sqlserverv8.vcxproj" (default target) (2) ->
(CustomBuild target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5):
error MSB8066: Custom build for '..\binding.gyp' exited with code 1. [C:\Works\Projects\trainingload-new\node_modules\ms
nodesqlv8\build\sqlserverv8.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.40
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess. (C:\Users\hhyyy\AppData\Roaming\nvm\v22.9.0\node_modules\node-gyp\lib\build.js:216:23)
gyp ERR! stack at ChildProcess.emit (node:events:519:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose"
gyp ERR! cwd C:\Works\Projects\trainingload-new\node_modules\msnodesqlv8
gyp ERR! node -v v22.9.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok

@TimelordUK
Copy link
Owner

hello

either change binding.gyp 109 'echo' to 'print' and that should work

or install git bash

add C:\Program Files\Git\usr\bin to path. restart terminal and make sure echo exists

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants