node.js – When introducing ffmpeg-concat into electron egg, there is a binding error when using it

/usr/local/lib/node_modules/ffmpeg-concat/node_modules/bindings/bindings.js:135
  throw err;
  ^

Error: Could not locate the bindings file. Tried:
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/build/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/build/Debug/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/build/Release/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/out/Debug/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/Debug/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/out/Release/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/Release/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/build/default/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/compiled/10.19.0/linux/x64/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/addon-build/release/install-root/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/addon-build/debug/install-root/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/addon-build/default/install-root/webgl.node
 → /usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/lib/binding/node-v64-linux-x64/webgl.node
    at bindings (/usr/local/lib/node_modules/ffmpeg-concat/node_modules/bindings/bindings.js:126:9)
    at Object. (/usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/src/javascript/native-gl.js:1:40)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object. (/usr/local/lib/node_modules/ffmpeg-concat/node_modules/gl/src/javascript/webgl-rendering-context.js:4:58)

Could not locate the bindings file.

Read more here: Source link