philhk / hidive-downloader

A CLI controlled Hidive downloader
Other
8 stars 3 forks source link

Node GPM Issue #9

Closed superboo07 closed 1 year ago

superboo07 commented 1 year ago

tried running npm install and got this

npm ERR! code 1
npm ERR! path C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || npm run build-release
npm ERR! > better-sqlite3@7.6.2 build-release
npm ERR! > node-gyp rebuild --release
npm ERR!
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
npm ERR!   copy_builtin_sqlite3
npm ERR!   sqlite3.c
npm ERR!   win_delay_load_hook.cc
npm ERR!   sqlite3.vcxproj -> C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\Release\\sqlite3.lib
npm ERR!   better_sqlite3.cpp
npm ERR! C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\src\util\macros.lzz(157,21): error C2039: 'AccessorSignature': is not a member of 'v8' [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\AppData\Local\node-gyp\Cache\20.2.0\include\node\v8.h(71): message : see declaration of 'v8' [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\src\util\macros.lzz(157,21): error C3083: 'AccessorSignature': the symbol to the left of a '::' must be a type [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\src\util\macros.lzz(157,40): error C2039: 'New': is not a member of 'v8' [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\AppData\Local\node-gyp\Cache\20.2.0\include\node\v8.h(71): message : see declaration of 'v8' [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\src\util\macros.lzz(157,43): error C3861: 'New': identifier not found [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\src\util\binder.lzz(37,51): error C2039: 'CreationContext': is not a member of 'v8::Object' [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR! C:\Users\talls\AppData\Local\node-gyp\Cache\20.2.0\include\node\v8-value-serializer.h(22): message : see declaration of 'v8::Object' [C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
npm ERR!   test_extension.c
npm ERR!   win_delay_load_hook.cc
npm ERR!      Creating library C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\Release\test_extension.lib and object C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\Release\test_extension.exp
npm ERR!   Generating code
npm ERR!   Previous IPDB not found, fall back to full compilation.
npm ERR!   All 3 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
npm ERR!   Finished generating code
npm ERR!   test_extension.vcxproj -> C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3\build\Release\\test_extension.node
npm ERR! prebuild-install warn install No prebuilt binaries found (target=20.2.0 runtime=node arch=x64 libc= platform=win32)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@20.2.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.11 found at "C:\Users\talls\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe"
npm ERR! gyp info find VS using VS2019 (16.11.33529.622) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Users\talls\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'msvs',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\talls\\OneDrive\\Documents\\Apps\\hidive-downloader-nx-2.1.0\\node_modules\\better-sqlite3\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\talls\\AppData\\Local\\node-gyp\\Cache\\20.2.0\\include\\node\\common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\talls\\AppData\\Local\\node-gyp\\Cache\\20.2.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\talls\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\20.2.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\talls\\OneDrive\\Documents\\Apps\\hidive-downloader-nx-2.1.0\\node_modules\\better-sqlite3',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'C:\\Users\\talls\\OneDrive\\Documents\\Apps\\hidive-downloader-nx-2.1.0\\node_modules\\better-sqlite3\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'build/binding.sln',
npm ERR! gyp info spawn args   '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args   '/nologo',
npm ERR! gyp info spawn args   '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! 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" "--release"
npm ERR! gyp ERR! cwd C:\Users\talls\OneDrive\Documents\Apps\hidive-downloader-nx-2.1.0\node_modules\better-sqlite3
npm ERR! gyp ERR! node -v v20.2.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\talls\AppData\Local\npm-cache\_logs\2023-05-24T04_39_31_603Z-debug-0.log
DeicPro commented 1 year ago

Same for me

 ⋏  deiki@archlinux  hidive-downloader ➤  npm install
npm ERR! code 1
npm ERR! path /home/deiki/Descargas/hidive-downloader/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! > better-sqlite3@7.6.2 build-release
npm ERR! > node-gyp rebuild --release
npm ERR! 
npm ERR! make: se entra en el directorio '/home/deiki/Descargas/hidive-downloader/node_modules/better-sqlite3/build'
npm ERR!   TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR!   ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR!   TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR!   CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR! rm -f Release/obj.target/deps/sqlite3.a Release/obj.target/deps/sqlite3.a.ar-file-list; mkdir -p `dirname Release/obj.target/deps/sqlite3.a`
npm ERR! ar crs Release/obj.target/deps/sqlite3.a @Release/obj.target/deps/sqlite3.a.ar-file-list
npm ERR!   COPY Release/sqlite3.a
npm ERR!   CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
npm ERR! rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! make: se sale del directorio '/home/deiki/Descargas/hidive-downloader/node_modules/better-sqlite3/build'
npm ERR! prebuild-install warn install No prebuilt binaries found (target=20.2.0 runtime=node arch=x64 libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@20.2.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.11.3 found at "/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v20.2.0/node-v20.2.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.2.0/node-v20.2.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v20.2.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.2.0/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/deiki/Descargas/hidive-downloader/node_modules/better-sqlite3/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/deiki/.cache/node-gyp/20.2.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/deiki/.cache/node-gyp/20.2.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/deiki/.cache/node-gyp/20.2.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/deiki/Descargas/hidive-downloader/node_modules/better-sqlite3',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! En el fichero incluido desde ./src/better_sqlite3.lzz:11,
npm ERR!                  desde ../src/better_sqlite3.cpp:4:
npm ERR! /home/deiki/.cache/node-gyp/20.2.0/include/node/node.h:1176:7: aviso: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>)’ to ‘node::addon_context_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>, void*)’} [-Wcast-function-type]
npm ERR!  1176 |       (node::addon_context_register_func) (regfunc),                  \
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/deiki/.cache/node-gyp/20.2.0/include/node/node.h:1194:3: nota: en expansión de macro ‘NODE_MODULE_CONTEXT_AWARE_X’
npm ERR!  1194 |   NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/deiki/.cache/node-gyp/20.2.0/include/node/node.h:1225:3: nota: en expansión de macro ‘NODE_MODULE_CONTEXT_AWARE’
npm ERR!  1225 |   NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME,                     \
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ./src/better_sqlite3.lzz:67:1: nota: en expansión de macro ‘NODE_MODULE_INIT’
npm ERR! ./src/util/macros.lzz: In function ‘void SetPrototypeGetter(v8::Isolate*, v8::Local<v8::External>, v8::Local<v8::FunctionTemplate>, const char*, v8::AccessorGetterCallback)’:
npm ERR! ./src/util/macros.lzz:157:21: error: ‘v8::AccessorSignature’ no se ha declarado
npm ERR! ./src/util/binder.lzz: In static member function ‘static bool Binder::IsPlainObject(v8::Isolate*, v8::Local<v8::Object>)’:
npm ERR! ./src/util/binder.lzz:37:51: error: ‘class v8::Object’ has no member named ‘CreationContext’; did you mean ‘GetCreationContext’?
npm ERR! ./src/util/data.lzz: In function ‘v8::Local<v8::Value> Data::GetValueJS(v8::Isolate*, sqlite3_stmt*, int, bool)’:
npm ERR! ./src/util/data.lzz:73:92: aviso: esta sentencia puede fracasar [-Wimplicit-fallthrough=]
npm ERR! ./src/util/data.lzz:73:197: nota: aquí
npm ERR! ./src/util/data.lzz: In function ‘v8::Local<v8::Value> Data::GetValueJS(v8::Isolate*, sqlite3_value*, bool)’:
npm ERR! ./src/util/data.lzz:77:81: aviso: esta sentencia puede fracasar [-Wimplicit-fallthrough=]
npm ERR! ./src/util/data.lzz:77:175: nota: aquí
npm ERR! make: *** [better_sqlite3.target.mk:123: Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 6.3.5-zen1-1-zen
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd /home/deiki/Descargas/hidive-downloader/node_modules/better-sqlite3
npm ERR! gyp ERR! node -v v20.2.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/deiki/.npm/_logs/2023-06-02T20_46_50_921Z-debug-0.log
superboo07 commented 1 year ago

I found a fix by completely uninstalling node, beyond just using the windows uninstaller.