如何修复 NodeJS argon2 崩溃
我的使用 argon2 库的 NodeJS 应用在 docker 容器中崩溃(进程只是退出而没有错误消息),每次我使用 argon2 函数时都会这样,尽管它在我的桌面上工作正常。
此错误发生在 argon2==0.30.3。我通过在 package.json 中使用以下语句将其降级到 0.26.2 来修复:
package.json
"argon2": "^0.26.2",安装正确版本后(不要忘记在更改 package.json 后运行 npm install),问题完全消失。我没有尝试 argon2 的任何其他版本。
Check out similar posts by category:
NodeJS
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow