geoffereth
geoffereth
RRailway
Created by geoffereth on 8/14/2023 in #✋|help
python3 and nodejs
Hello! Do you have any suggestions on how my nodejs project can also include python3? I've setup a requirements.txt file in the root of my project and have also set a NIXPACKS_PYTHON_VERSION to 3.8 .. but for some reason python 2.7.18 is installed node gyp build error:
#10 42.82 gyp ERR! find Python - version is 2.7.18 - should be >=3.6.0
#10 42.82 gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
#10 42.82 gyp ERR! find Python
#10 42.82 gyp ERR! find Python - version is 2.7.18 - should be >=3.6.0
#10 42.82 gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
#10 42.82 gyp ERR! find Python
toml:
[phases.setup]
nixPkgs = ['nodejs', 'yarn', 'python']

[phases.install]
# retry up to 5 times on fails
cmd = 'yarn run install-prod'

[phases.build]
cmd = 'yarn run build'

[start]
cmd = 'yarn run start'
[phases.setup]
nixPkgs = ['nodejs', 'yarn', 'python']

[phases.install]
# retry up to 5 times on fails
cmd = 'yarn run install-prod'

[phases.build]
cmd = 'yarn run build'

[start]
cmd = 'yarn run start'
11 replies