Do the following on macOS if npm i fails for canvas installation remove this line : "canvas": "^2.11.2", from package.json Execute the following brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman python-setuptools npm i >npm install canvas@npm:@napi-rs/canvas