ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.22k stars 831 forks source link

The engine "node" is incompatible with this module. Expected version ">=18.17.0". Got "18.16.1" #553

Closed JimmyLv closed 1 year ago

JimmyLv commented 1 year ago

Describe the bug @ffmpeg/ffmpeg@0.12.4: The engine "node" is incompatible with this module. Expected version ">=18.17.0". Got "18.16.1"

Expected behavior Expect to be able to support a little lower node.js version

Screenshots bibigpt – Deployment Overview-Google Chrome

FujiwaraChoki commented 1 year ago

+1

FujiwaraChoki commented 1 year ago

Found a solution!

Change your "node" version in package.json to 18.16.1, this worked for me.

  "engines": {
    "node": "18.16.1"
  }
jeromewu commented 1 year ago

You can also upgrade your nodejs to 18.17.0+.

JimmyLv commented 1 year ago

Curious: Is it because of any new features of 18.17?

jeromewu commented 1 year ago

Nope, just because I didn't test on other versions.

JimmyLv commented 1 year ago

Maybe it can be more backward compatible, just declare 18.x, and wait until there is a problem?

Alpacora commented 1 year ago

👀... You can pass the flag --ignore-engines to bypass the error.

@JimmyLv

JellyBrick commented 1 year ago

Given node.js's versioning rules and changelog, this library is 18.x compatible. could you consider dropping the minimum version to 18.x?

jeromewu commented 1 year ago

Fixed in 0.12.6.