ACLClouds
ACLClouds

The Node.js or Python version is incompatible with the project

Unsupported engine errors, syntax errors or a missing compatible Python wheel appear when the project and the container image target different versions.

Unsupported engine errors, syntax errors or a missing compatible Python wheel appear when the project and the container image target different versions.

Step-by-step procedure

  1. Read the constraints

    Check engines in package.json, .nvmrc, runtime.txt, pyproject.toml or the framework documentation.

  2. Choose a maintained version

    Prefer an LTS version of Node.js or a Python version explicitly supported by your project’s dependencies.

  3. Rebuild the modules

    After a major version change, reinstall the dependencies to replace the native binaries compiled for the old version.

  4. Test the command

    Note the version shown on the “Environment” line of the bot status, then restart the bot and read the console again from the start.

Expected Node.js version (package.json)

{
  "engines": {
    "node": ">=22"
  }
}

Expected Python version (pyproject.toml)

[project]
requires-python = ">=3.12"

Changing the runtime version

On ACLClouds, the version is chosen in the bot’s “Startup” tab, in the “Runtime version” card. The “Version” field offers Node.js 20, 22 or 24 for a Node.js bot, and Python 3.11, 3.12 or 3.13 for a Python bot. Save, then confirm the change.

Dependencies are reinstalled at the next start and a bot that is online restarts. Once the bot is running again, the “Environment” line of its status shows the version actually in use: compare it with the one the project asks for.

Declaring the expected version

A project that states its version produces a clear error at install time, instead of a crash that is hard to read later. A few habits prevent most incompatibilities.

  • Node.js: fill in engines in package.json with the version used during development.
  • Python: fill in requires-python in pyproject.toml and pin the versions in requirements.txt.
  • Do not upload node_modules or a virtual environment created on your computer: their binaries are compiled for another system and another version.

Frequently asked questions

What does npm warn EBADENGINE Unsupported engine mean?

A dependency requires another version of Node.js. The following lines give the requested range (required) and the active version (current). In “Startup”, choose a version within that range, or install an older version of the dependency.

Why do I get Error [ERR_REQUIRE_ESM]: require() of ES Module?

The code uses require() to load a package published only as ES modules, which Node.js 20 refuses. Move to Node.js 24, which accepts this kind of loading, or replace the call with import(). You can also go back to the last version of the package still published as CommonJS.

What should I do about ERROR: Could not find a version that satisfies the requirement?

pip cannot find any version of the package compatible with the active Python. If the message mentions Requires-Python, the version pinned in requirements.txt is too old or too recent for this Python. Change the Python version, or pin a version of the package that supports it.

Why do I get ModuleNotFoundError: No module named 'audioop' with Python 3.13?

Python 3.13 removed the audioop module, which older versions of discord.py depend on. Update discord.py in requirements.txt, add the audioop-lts package, or switch the bot back to Python 3.12.

What does was compiled against a different Node.js version mean?

A native module was compiled for another version of Node.js, often because the node_modules folder comes from your computer. Delete that folder in the “Files” tab, then restart the bot: the dependencies are reinstalled for the active version.