前一个版本( v0.6.7-20240323)更新了node包,有反馈启动报错失败(日志如下)。
发现是sqlite binding位置在更新版本后变化了,打包没打进去,这里修复一下。
报错日志:
Could not locate the bindings file. Tried:
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\Debug\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\Release\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\out\Debug\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\Debug\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\out\Release\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\Release\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\default\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\compiled\18.5.0\win32\x64\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\addon-build\release\install-root\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\addon-build\debug\install-root\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\addon-build\default\install-root\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\lib\binding\node-v108-win32-x64\node_sqlite3.node
Error: Could not locate the bindings file. Tried:
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\Debug\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\Release\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\out\Debug\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\Debug\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\out\Release\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\Release\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\build\default\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\compiled\18.5.0\win32\x64\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\addon-build\release\install-root\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\addon-build\debug\install-root\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\addon-build\default\install-root\node_sqlite3.node
→ C:\snapshot\kikoeru-express\node_modules\sqlite3\lib\binding\node-v108-win32-x64\node_sqlite3.node
at bindings (C:\snapshot\kikoeru-express\node_modules\bindings\bindings.js:126:9)
at Object.<anonymous> (C:\snapshot\kikoeru-express\node_modules\sqlite3\lib\sqlite3-binding.js:1:99)
at Module._compile (pkg/prelude/bootstrap.js:1926:22)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\snapshot\kikoeru-express\node_modules\sqlite3\lib\sqlite3.js:2:17)
at Module._compile (pkg/prelude/bootstrap.js:1926:22)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
pkg/prelude/bootstrap.js:1872
throw error;