Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails #267

Closed
snowPu opened this issue Oct 5, 2023 · 3 comments
Closed

npm install fails #267

snowPu opened this issue Oct 5, 2023 · 3 comments

Comments

@snowPu
Copy link

snowPu commented Oct 5, 2023

Environment: Ubuntu, python 3.8.10, node 16.17.0

> gl@7.0.0 install
> prebuild-install || node-gyp rebuild

prebuild-install warn install No prebuilt binaries found (target=16.17.0 runtime=node arch=x64 libc= platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp@9.4.0
gyp info using node@16.17.0 | linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3.8"
gyp info spawn /usr/bin/python3.8
gyp info spawn args [
gyp info spawn args   '/home/sukanya/X/Navlite/headless-gl/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sukanya/X/Navlite/headless-gl/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sukanya/X/Navlite/headless-gl/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sukanya/.cache/node-gyp/16.17.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/sukanya/.cache/node-gyp/16.17.0',
gyp info spawn args   '-Dnode_gyp_dir=/home/sukanya/X/Navlite/headless-gl/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/sukanya/.cache/node-gyp/16.17.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/sukanya/X/Navlite/headless-gl',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
/bin/sh: 1: python: not found
gyp: Call to 'python commit_id.py check ..' returned exit status 127 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/sukanya/X/Navlite/headless-gl/node_modules/node-gyp/lib/configure.js:325:16)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.15.0-84-generic
gyp ERR! command "/usr/local/bin/node" "/home/sukanya/X/Navlite/headless-gl/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/sukanya/X/Navlite/headless-gl
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v9.4.0
gyp ERR! not ok 
npm ERR! code 1
npm ERR! path /home/sukanya/X/Navlite/headless-gl
npm ERR! command failed
npm ERR! command sh /tmp/install-c386ff5c.sh

@AEPKILL
Copy link

AEPKILL commented Nov 10, 2023

Maybe you need install python@2

/bin/sh: 1: python: not found

@NotReeceHarris
Copy link

sudo apt install python-is-python3

or put this in your bashrc

alias python=python3

@dhritzkiv
Copy link
Member

The latest version is available as v8.0.2 and is prebuilt for linux/macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants