Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-musl-arm64.tar.gz #1864

Closed
ehudg opened this issue Jul 22, 2021 · 1 comment

Comments

@ehudg
Copy link

ehudg commented Jul 22, 2021

Hi, I'm attempting to run an app with canvas in AWS CodeBuild.

buildspec.yml:

version: 0.2
env:
shell: /bin/sh
phases:

install:
runtime-versions:
nodejs: 12
python: 3.x
python: 2.x

pre_build:
commands:
- echo Installing source NPM dependencies...
- npm install
- npm install -g [email protected]

build:
commands:
- docker-compose -f docker-compose.dev.yml up --build -d

post_build:
commands:
- echo Build completed on date

artifacts:
files:
- '**/*'

The relevant line in package.json:

"canvas": "^2.8.0"

The error I'm getting in CodeBuild log:

[email protected] install /app/node_modules/canvas
--
482 | > node-pre-gyp install --fallback-to-build
483 |  
484 | node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-musl-arm64.tar.gz
485 | node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v72 ABI, musl) (falling back to source compile with node-gyp)
486 | node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-musl-arm64.tar.gz

The npm page says that 2.8.0 is the latest version, but it cannot find it.

thanks

@zbjornson
Copy link
Collaborator

Please see #1511:

Installation fails with a 404 in the log

If you're on Alpine Linux or another distro using musl-libc

The log may look like

node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.0/canvas-v2.6.0-node-v64-linux-musl-x64.tar.gz

Prebuilds are only available for glibc, not musl-libc. See node-gfx/node-canvas-prebuilt#77, which includes information on building from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants