Node native compilation missing Python, help?
Trying to setup dependencies for a project and seeing the following error. Any way to work around this?
[4/4] Building fresh packages...
error An unexpected error occurred: "/home/runner/node_modules/iltorb: Command failed.
Exit code: 1
Command: sh
Arguments: -c node ./scripts/install.js || node-gyp rebuild
Directory: /home/runner/node_modules/iltorb
Output:
info looking for cached prebuild @ /home/runner/.npm/_prebuilds/9cdd6b-iltorb-v2.4.0-node-v59-linux-x64.tar.gz
http request GET https://github.com/MayhemYDG/iltorb/releases/download/v2.4.0/iltorb-v2.4.0-node-v59-linux-x64.tar.gz
http 404 https://github.com/MayhemYDG/iltorb/releases/download/v2.4.0/iltorb-v2.4.0-node-v59-linux-x64.tar.gz
WARN install No prebuilt binaries found (target=9.11.1 runtime=node arch=x64 platform=linux)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19)
gyp ERR! stack at PythonFinder. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16)
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:170:21)
gyp ERR! System Linux 4.13.0-1011-gcp
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/runner/node_modules/iltorb
gyp ERR! node -v v9.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok".
info If you think this is a bug, please open a bug report with the information provided in "/home/runner/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Repl.it: package installation failure
This question interests me too. I think you can find the answer from experienced professionals, because here I can not find it.
It's probably a Repl.it bug that isn't patched or will need to be. If you really need this to work, I'd say you should get an IDE. Usually they're open source.