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.
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 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.