Skip to content

install response status 404 Not Found #2473

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
bennycode opened this issue Dec 25, 2024 · 2 comments
Open

install response status 404 Not Found #2473

bennycode opened this issue Dec 25, 2024 · 2 comments

Comments

@bennycode
Copy link

I am using pdfjs-dist v4.8.69 which lists canvas as an optional dependency. However, when I am trying to run npm install, the process fails:

npm error node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@20.18.1 (node-v115 ABI, unknown) (falling back to source compile with node-gyp)

npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-darwin-unknown-arm64.tar.gz

@siddarth
Copy link

Seeing the same on our end (404) for this URL:
https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v131-darwin-unknown-arm64.tar.gz

Also saw some relevant discussions in #2430 and #2448 (comment)

@m3Lith
Copy link

m3Lith commented Dec 30, 2024

Try overriding canvas version in package.json to force use of 3.0.0:

"overrides": {
  "canvas": "3.0.0"
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants