DevDeps: Direct and indirect reliance on canvas
module fails on ARM / Apple M1
#4828
Closed
4 tasks done
Labels
dependencies
Pull requests that update a dependency file
status: needs upstream fix
defect within Mocha's dependency tree
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
The
canvas
module doesn't install natively on an ARM computer (see eg. Automattic/node-canvas#1733) making it hard to contribute to this project when on eg. an Apple M1.Previously a replacement was suggested in #4757 but it was there pointed out that
canvas
is also an indirect dependency due toassetgraph-builder
.When preparing a PR right now for another issue this caused me issues in installing the dev dependencies and to thus run the test suites, but when I removed those two dependencies as a temporary local workaround for me, then I could get it installing.
Steps to Reproduce
Expected behavior: a local
npm install
in themocha
project works on an ARM-based computersActual behavior: a local
npm install
in themocha
project fails on my MacBook Air M1It fails due to there existing no prebuilt binary for
arm64
, the following URL returns 404:https://github.com/Automattic/node-canvas/releases/download/v2.9.0/canvas-v2.9.0-node-v93-darwin-unknown-arm64.tar.gz
Actual error:
See the full error log here
Reproduces how often: 100%
Versions
mocha --version
andnode node_modules/.bin/mocha --version
:master
node --version
:v16.13.2
Additional Information
The text was updated successfully, but these errors were encountered: