You are not logged in.
Pages: 1
Hello friends around the world.
I'm having a problem with npm. I was trying to run a friend's script, and it gave me the following error when I tried to mount the docker.
25.40 npm error gyp info using node@18.20.8 | linux | x64
25.40 npm error gyp ERR! find Python
25.40 npm error gyp ERR! find Python Python is not set from command line or npm configuration
25.40 npm error gyp ERR! find Python Python is not set from environment variable PYTHON
25.40 npm error gyp ERR! find Python checking if "python3" can be used
25.40 npm error gyp ERR! find Python - executable path is ""
25.40 npm error gyp ERR! find Python - "" could not be run
25.40 npm error gyp ERR! find Python checking if "python" can be used
25.40 npm error gyp ERR! find Python - executable path is ""
25.40 npm error gyp ERR! find Python - "" could not be run
25.40 npm error gyp ERR! find Python
25.40 npm error gyp ERR! find Python **********************************************************
25.40 npm error gyp ERR! find Python You need to install the latest version of Python.
25.40 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
25.40 npm error gyp ERR! find Python you can try one of the following options:
25.40 npm error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
25.40 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
25.40 npm error gyp ERR! find Python - Set the environment variable PYTHON
25.40 npm error gyp ERR! find Python - Set the npm configuration variable python:
25.40 npm error gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
25.40 npm error gyp ERR! find Python For more information consult the documentation at:
25.40 npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
25.40 npm error gyp ERR! find Python **********************************************************
25.40 npm error gyp ERR! find Python
25.40 npm error gyp ERR! configure error
25.40 npm error gyp ERR! stack Error: Could not find any Python installation to use
25.40 npm error gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:306:11)
25.40 npm error gyp ERR! stack at PythonFinder.findPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:164:17)
25.40 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
25.40 npm error gyp ERR! stack at async configure (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18)
25.40 npm error gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
25.40 npm error gyp ERR! System Linux 6.12.40-2-lts
25.40 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
25.40 npm error gyp ERR! cwd /usr/src/app/node_modules/heapdump
25.40 npm error gyp ERR! node -v v18.20.8
25.40 npm error gyp ERR! node-gyp -v v10.1.0But I believe this error shouldn't occur since I already have both the environment variables configured and the npm variables for Python's location clearly defined.
Any ideas on what this might be?
Offline
when I tried to mount the docker
https://docs.docker.com/extensions/exte … -binaries/ is probably a bad idea.
Afaict people just install python into the docker images… just walk over to your friend and run the script there - still saner approach than docker.
Online
Pages: 1