mifi / editly

Slick, declarative command line video editing & API
MIT License
4.8k stars 313 forks source link

Cannot npm install on Mac - gl fails #286

Open MileanCo opened 3 months ago

MileanCo commented 3 months ago

it seems I cannot install the gl dependency. Its trying to build special C++ targets. I have a similar failure to here https://github.com/mifi/editly/issues/249

I'm running mac OS intel, node v20, node-gyp -v 9.4.1, etc.

npm install editly npm warn deprecated inflight@1.0.6: 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 read-package-json@6.0.4: This package is no longer supported. Please use @npmcli/package-json instead. npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm warn deprecated @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead. npm warn deprecated npmlog@5.0.1: This package is no longer supported. npm warn deprecated npmlog@6.0.2: This package is no longer supported. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm warn deprecated @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead. npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated domexception@2.0.1: Use your platform's native DOMException instead npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead npm warn deprecated gauge@3.0.2: This package is no longer supported. npm warn deprecated gauge@4.0.4: This package is no longer supported. npm warn deprecated @wessberg/ts-evaluator@0.0.27: this package has been renamed to ts-evaluator. Please install ts-evaluator instead npm error code 1 npm error path node_modules/editly/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=20.16.0 runtime=node arch=x64 libc= platform=darwin) npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@9.4.1 npm error gyp info using node@20.16.0 | darwin | x64 npm error gyp info find Python using Python version 3.12.5 found at "/usr/local/opt/python@3.12/bin/python3.12" npm error gyp info spawn /usr/local/opt/python@3.12/bin/python3.12 npm error gyp info spawn args [ npm error gyp info spawn args 'node_modules/editly/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 'node_modules/editly/node_modules/gl/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args 'node_modules/editly/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/jstenkvi/Library/Caches/node-gyp/20.16.0/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=/Users/jstenkvi/Library/Caches/node-gyp/20.16.0', npm error gyp info spawn args '-Dnode_gyp_dir=node_modules/editly/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/Users/jstenkvi/Library/Caches/node-gyp/20.16.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=node_modules/editly/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 /bin/sh: python: command not found npm error 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 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 (node_modules/editly/node_modules/node-gyp/lib/configure.js:325:16) npm error gyp ERR! stack at ChildProcess.emit (node:events:519:28) npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm error gyp ERR! System Darwin 23.6.0 npm error gyp ERR! command "/usr/local/Cellar/node@20/20.16.0/bin/node" "node_modules/editly/node_modules/.bin/node-gyp" "rebuild" npm error gyp ERR! cwd node_modules/editly/node_modules/gl npm error gyp ERR! node -v v20.16.0 npm error gyp ERR! node-gyp -v v9.4.1 npm error gyp ERR! not ok

MileanCo commented 3 months ago

Is this bc I dont have python2 installed? I have python3 installed. Python2 is end of life so im not bothering installing that.

C00reNUT commented 2 months ago

same here

sherlockwxl commented 1 month ago

same error here, any help?

benjamingorman commented 1 week ago

same here