michał
michał2mo ago

Failing to deploy with bcrypt npm package

Hey, I'm deploying my project on coolify with docker and it doesn't work with bcrypt. I get that warning: Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed: ┠─ npm:bcrypt@5.1.1 ┃ ┠─ This may cause the packages to not work correctly. ┖─ To run lifecycle scripts, use the --allow-scripts flag with deno install: deno install --allow-scripts=npm:bcrypt@5.1.1 so I added --allow-scripts to install comand in Dockerfile, but now it drops an error from attached screenshot. What can I do?
No description
No description
2 Replies
molsson
molsson2mo ago
depending on how sensitive your use case is to performance, you might want to switch to bcryptjs... it will cause much less problems for you
michał
michałOP2mo ago
I will check it out, thank you @molsson

Did you find this page helpful?