我開始不知從哪里得到這個錯誤,我用谷歌搜索了很多,但沒有得到任何幫助
這作業正常,但也許在我設定 github 作業流之后Codeql-analysis.yml。或者也許在我更新軟體包之后 - 開始出現此錯誤。
- 我的應用程式代碼很干凈,沒有問題。
- 我確定我的應用程式代碼沒有出現此錯誤。
"sqlite": "^4.0.25",
"sqlite3": "^5.0.2"
sqlite3 5.0.3 是最新版本
錯誤:
node:internal/modules/cjs/loader:1183
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/dreamy/YouTube/Silenzio_Bruno/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/dreamy/YouTube/Silenzio_Bruno/node_modules/sqlite3/lib/sqlite3-binding.js:4:15)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v17.9.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- 版本
npm: '8.7.0'
node: 'v17.9.0'
這是我到目前為止作為谷歌解決方案所嘗試的
- 我洗掉了 .github/workflows 檔案夾。
- 我創建了新檔案夾,復制了所有代碼檔案,試圖再次運行。
- 我嘗試洗掉
node_modulues檔案夾和yarn.lock檔案并嘗試再次安裝 - 嘗試清理快取
yarn并git使用npm cache clean sqlite3,yarn cache clean,git rm -r --cached . - 試過了
npm rebuild bcrypt --build-from-source - 嘗試更新所有軟體包
uj5u.com熱心網友回復:
這也發生在我昨天。在我更新我的 Debian 系統后,如果發現 Debian 升級 Bullseye 以包含 GLIBC 2.31:
https://packages.debian.org/bullseye/libc6-amd64
SQLITE3 模塊頁面解釋了該模塊,包括需要特定 GLIBC 版本的靜態鏈接的預構建二進制檔案:
https://www.npmjs.com/package/sqlite3(標題為預構建二進制檔案的部分)
在模塊自己更新之前,同一頁面描述了使用主機系統的 sqlite3 安裝從源代碼編譯。
對于 Debian Bullseye,我做了以下作業:
apt-get install sqlite3 libsqlite3-dev
npm install --build-from-source --sqlite=/usr/bin sqlite3
該模塊在那之后作業。我不太了解您的環境以及為您實施這將是多么容易。我懷疑如果你檢查主機系統上的 GLIBC 版本,你最近也有變化。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/463258.html
標籤:javascript 节点.js sqlite github
