I get the following error when trying to deploy my nodejs app.
#13 9.076 npm ERR! code 1
#13 9.076 npm ERR! path /app/node_modules/node-expat
#13 9.077 npm ERR! command failed
#13 9.077 npm ERR! command sh -c -- node-gyp rebuild
#13 9.078 npm ERR! gyp info it worked if it ends with ok
#13 9.078 npm ERR! gyp info using node-gyp@9.1.0
#13 9.078 npm ERR! gyp info using node@19.1.0 | linux | x64
#13 9.078 npm ERR! gyp ERR! find Python
#13 9.078 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#13 9.078 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#13 9.078 npm ERR! gyp ERR! find Python checking if "python3" can be used
#13 9.078 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#13 9.078 npm ERR! gyp ERR! find Python checking if "python" can be used
#13 9.078 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#13 9.078 npm ERR! gyp ERR! find Python
#13 9.078 npm ERR! gyp ERR! find Python **********************************************************
#13 9.078 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
#13 9.078 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#13 9.078 npm ERR! gyp ERR! find Python you can try one of the following options:
#13 9.078 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#13 9.078 npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
#13 9.078 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
#13 9.078 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
#13 9.078 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#13 9.078 npm ERR! gyp ERR! find Python For more information consult the documentation at:
#13 9.078 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#13 9.078 npm ERR! gyp ERR! find Python **********************************************************
#13 9.078 npm ERR! gyp ERR! find Python
The error ends with
Error failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c npm install --production=false]: exit code: 1
Can anyone help with my problem?