Closed Jugbot closed 7 months ago
Realized this repo was 9 years stale haha
no worries, the intention of this project in the beginning was to reverse a database into migrations (back in the days when the shift from no migrations to migrations happened.). We do maintain db-migrate today and use it in all our products, so if you were searching for migrations, there you go, if you really want to reverse a db into migrations. well i suggest install an older node version with nvm just for this purpose ^^
and uff 10 years, didn't realize it has been that long. On to the next decade then
When installing this module I get the following error:
Visual Studio 2022 (C++ dist)
node version 14.21.3 windows 11
Full Log
```log npm WARN deprecated mongodb@1.4.40: Please upgrade to 2.2.19 or higher npm WARN deprecated bson@0.2.22: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details C:\Program Files (x86)\Nodist\bin\umigrate -> C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\bin\umigrate > mariasql@0.2.6 install C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql > node-gyp rebuild C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql>if not defined npm_config_node_gyp (node "C:\Users\lucas\AppData\Roaming\nvm\v14.21.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\lucas\AppData\Roaming\nvm\v14.21.3\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\bin\node-gyp.js" rebuild ) aes.cpp aestables.cpp algebra.cpp C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\extra\yassl\taocrypt\src\algebra.cpp(221,30): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\extra\yassl\taocrypt\taocrypt.vcxproj] C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\extra\yassl\taocrypt\src\algebra.cpp(251,28): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\extra\yassl\taocrypt\taocrypt.vcxproj] arc4.cpp asn.cpp bftables.cpp blowfish.cpp coding.cpp des.cpp dh.cpp dsa.cpp file.cpp hash.cpp hc128.cpp integer.cpp md2.cpp md4.cpp md5.cpp misc.cpp rabbit.cpp random.cpp ripemd.cpp rsa.cpp sha.cpp tftables.cpp twofish.cpp win_delay_load_hook.cc taocrypt.vcxproj -> C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\Release\\taocrypt.lib buffer.cpp cert_wrapper.cpp crypto_wrapper.cpp handshake.cpp lock.cpp log.cpp socket_wrapper.cpp ssl.cpp C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\extra\yassl\src\ssl.cpp(1731,1): warning C4002: too many arguments for function-like macro invocation 'snprintf ' [C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\extra\yassl\yassl.vcxproj] C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\extra\yassl\src\ssl.cpp(1729,7): warning C4473: '_snprintf_s' : not enough arguments passed for format string [ C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\extra\yassl\yassl.vcxproj] C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\extra\yassl\src\ssl.cpp(1729,7): placeholders and their parameters expect 6 variadic arguments, but 1 were provided C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\extra\yassl\src\ssl.cpp(1729,7): the missing variadic argument 2 is required by format string '%2d' timer.cpp yassl_error.cpp yassl_imp.cpp yassl_int.cpp win_delay_load_hook.cc yassl.vcxproj -> C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\Release\\yassl.lib client.c C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\include\my_global.h(855,1): error C2169: 'log2': intrinsic function, cannot be defined [C:\Program Files (x86)\ Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\libmysql\clientlib.vcxproj] (compiling source file '../../../../deps/libmariadbclient/sql-common/client.c') array.c C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\include\my_global.h(855,1): error C2169: 'log2': intrinsic function, cannot be defined [C:\Program Files (x86)\ Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\mysys\mysys.vcxproj] (compiling source file '../../../../deps/libmariadbclient/mysys/array.c') my_aes.cc C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\include\my_global.h(854,22): error C2169: 'log2': intrinsic function, cannot be defined [C:\Program Files (x86) \Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\mysys_ssl\mysys_ssl.vcxproj] (compiling source file '../../../../deps/libmariadbclient/mysys_ssl/my_aes.cc') bchange.c C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\include\my_global.h(855,1): error C2169: 'log2': intrinsic function, cannot be defined [C:\Program Files (x86)\ Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\strings\strings.vcxproj] (compiling source file '../../../../deps/libmariadbclient/strings/bchange.c') vio.c C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\include\my_global.h(855,1): error C2169: 'log2': intrinsic function, cannot be defined [C:\Program Files (x86)\ Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\vio\vio.vcxproj] (compiling source file '../../../../deps/libmariadbclient/vio/vio.c') C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\deps\libmariadbclient\vio\vio.c(389,3): warning C4013: 'yaSSL_CleanUp' undefined; assuming extern returning int [C:\Program Files (x8 6)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\deps\libmariadbclient\vio\vio.vcxproj] adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c win_delay_load_hook.cc zlib.vcxproj -> C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql\build\Release\\zlib.lib 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.onExit (C:\Users\lucas\AppData\Roaming\nvm\v14.21.3\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\lib\build.js:203:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) gyp ERR! System Windows_NT 10.0.22631 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\lucas\\AppData\\Roaming\\nvm\\v14.21.3\\node_modules\\npm\\node_modules\\npm-lifecycle\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Program Files (x86)\Nodist\bin\node_modules\umigrate\node_modules\mariasql gyp ERR! node -v v14.21.3 gyp ERR! node-gyp -v v9.4.1 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mariasql@0.2.6 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mariasql@0.2.6 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\lucas\AppData\Roaming\npm-cache\_logs\2024-04-17T03_41_08_928Z-debug.log ```