Skip to content

Build fails on Node.js versions newer than 18.17.1 #11

@arhowe00

Description

@arhowe00

npm install fails on Node.js versions newer than v18.17.1, including all recent LTS releases (v20, v22+).

The installation process requires compiling the canvas package from source, which fails for two primary reasons:

  • The version of canvas used in the dependency tree relies on V8 APIs that were removed in newer versions of Node.js. This results in C++ compilation errors like error: no template named 'CopyablePersistentTraits' in namespace 'v8'.
  • The build script requires Python's distutils module, which was removed in Python 3.12+. This causes a ModuleNotFoundError on systems with modern Python installations.

The only successful build environment requires pinning the Node.js version to 18.17.1 and ensuring the Python environment includes setuptools, and upgrading vite and vuetify. Not sure if this will break things, but the build works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions