Skip to content
Advertisement

How to solve “Could not find any Python installation to use” with docker node alpine Image when adding bcrypt to package.json?

Before I added bcrypt to my package.json, everything was working fine. Now, I get the error message below.

This is an excerpt of my package.json:

JavaScript

This is my dockerfile. I am using the offical node alpine image. I wonder if alpine has phyton already installed.

JavaScript

I get this error message when I run docker-compose:

JavaScript

How can I solve this issue? Do I have to install phyton on alpine or just add the env variable? If so, please tell me how. I have already searched for solutions but no one worked …

Advertisement

Answer

For the sake of completeness: I solved it.

The solution was to replace the dependency “bcrypt” with “bcryptjs“.

With bcryptjs there are no errors. Neither with standard node docker images nor node alpine docker images.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement