I’m trying to install Brain.js in Google Colab but I got this:
⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs ⠧npm warn deprecated [email protected]: This package is no longer supported. ⠧⠇npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported ⠇npm warn deprecated [email protected]: This package is no longer supported. ⠇npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported ⠇npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. ⠏npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported ⠋npm warn deprecated [email protected]: This package is no longer supported. ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹npm error code 1 ⠹npm error path /content/node_modules/gl ⠹npm error command failed ⠹npm error command sh -c prebuild-install || node-gyp rebuild ⠹npm error prebuild-install warn install No prebuilt binaries found (target=18.20.5 runtime=node arch=x64 libc= platform=linux) npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | linux | x64 npm error gyp info find Python using Python version 3.10.12 found at “/usr/bin/python3” npm error gyp info spawn /usr/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args ‘/content/node_modules/node-gyp/gyp/gyp_main.py’, npm error gyp info spawn args ‘binding.gyp’, npm error gyp info spawn args ‘-f’, npm error gyp info spawn args ‘make’, npm error gyp info spawn args ‘-I’, npm error gyp info spawn args ‘/content/node_modules/gl/build/config.gypi’, npm error gyp info spawn args ‘-I’, npm error gyp info spawn args ‘/content/node_modules/node-gyp/addon.gypi’, npm error gyp info spawn args ‘-I’, npm error gyp info spawn args ‘/root/.cache/node-gyp/18.20.5/include/node/common.gypi’, npm error gyp info spawn args ‘-Dlibrary=shared_library’, npm error gyp info spawn args ‘-Dvisibility=default’, npm error gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/18.20.5’, npm error gyp info spawn args ‘-Dnode_gyp_dir=/content/node_modules/node-gyp’, npm error gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/18.20.5/<(target_arch)/node.lib’, npm error gyp info spawn args ‘-Dmodule_root_dir=/content/node_modules/gl’, npm error gyp info spawn args ‘-Dnode_engine=v8’, npm error gyp info spawn args ‘–depth=.’, npm error gyp info spawn args ‘–no-parallel’, npm error gyp info spawn args ‘–generator-output’, npm error gyp info spawn args ‘build’, npm error gyp info spawn args ‘-Goutput_dir=.’ npm error gyp info spawn args ] npm error Package xi was not found in the pkg-config search path. npm error Perhaps you should add the directory containing xi.pc' npm error to the PKG_CONFIG_PATH environment variable npm error Package 'xi', required by 'virtual:world', not found npm error gyp: Call to 'pkg-config --libs-only-L --libs-only-other x11 xi xext' returned exit status 1 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp npm error gyp ERR! configure error npm error gyp ERR! stack Error:
gyp` failed with exit code: 1 npm error gyp ERR! stack at ChildProcess.onCpExit (/content/node_modules/node-gyp/lib/configure.js:325:16) npm error gyp ERR! stack at ChildProcess.emit (node:events:517:28) npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) npm error gyp ERR! System Linux 6.1.85+ npm error gyp ERR! command “/tools/node/bin/node” “/content/node_modules/.bin/node-gyp” “rebuild” npm error gyp ERR! cwd /content/node_modules/gl npm error gyp ERR! node -v v18.20.5 npm error gyp ERR! node-gyp -v v9.4.1 npm error gyp ERR! not ok ⠹npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-06T23_09_33_039Z-debug-0.log ⠹
3