Comments (6)
Did something change recently? I noticed our CI started failing for our macos (arm64) GitHub build.
Logs
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
npm ERR! Failed to execute '/Users/runner/hostedtoolcache/node/20.12.2/arm64/bin/node /Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v11[5](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:6)' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | darwin | arm[6](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:7)4
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-darwin-unknown-arm64.tar.gz
npm ERR! node-pre-gyp ERR! install 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
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! 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
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.12.3 found at "/opt/homebrew/opt/[email protected]/bin/python3.12"
npm ERR! gyp http GET https://nodejs.org/download/release/v20.12.2/node-v20.12.2-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.12.2/node-v20.12.2-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v20.12.2/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.12.2/SHASUMS256.txt
npm ERR! gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.12
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/runner/Library/Caches/node-gyp/20.12.2/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/runner/Library/Caches/node-gyp/20.12.2',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/runner/Library/Caches/node-gyp/20.12.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! Package pangocairo was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `pangocairo.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! No package 'pangocairo' found
npm ERR! gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:2[7](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:8)1:18)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:51[8](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:9):28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:2[9](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:10)4:12)
npm ERR! gyp ERR! System Darwin 23.4.0
npm ERR! gyp ERR! command "/Users/runner/hostedtoolcache/node/20.12.2/arm64/bin/node" "/Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
npm ERR! gyp ERR! cwd /Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas
npm ERR! gyp ERR! node -v v20.12.2
npm ERR! gyp ERR! node-gyp -v v[10](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:11).0.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/Users/runner/hostedtoolcache/node/20.12.2/arm64/bin/node /Users/runner/hostedtoolcache/node/20.12.2/arm64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v[11](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:12)5' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm ERR! node-pre-gyp ERR! System Darwin 23.4.0
npm ERR! node-pre-gyp ERR! command "/Users/runner/hostedtoolcache/node/20.[12](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:13).2/arm64/bin/node" "/Users/runner/work/web-scrobbler/web-scrobbler/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
npm ERR! node-pre-gyp ERR! cwd /Users/runner/work/web-scrobbler/web-scrobbler/node_modules/canvas
npm ERR! node-pre-gyp ERR! node -v v20.12.2
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /Users/runner/.npm/_logs/2024-04-30T23_54_16_[13](https://github.com/web-scrobbler/web-scrobbler/actions/runs/8902808795/job/24450278411#step:4:14)8Z-debug-0.log
Last successful build was 2 weeks ago prior to this commit.
Update
Looks like it was due to the MacOS build agent was pinned to -latest
which I guess got bumped from 12
to 13
internally. Pinning to macos-12
resolved the issue for us.
See: web-scrobbler/web-scrobbler#4688
from node-canvas.
no work arm64
from node-canvas.
no work arm64
hey man, im actually running
x86_64
on ubuntu, intel_64 bits, shouldn't it work for intel?
from node-canvas.
I'm facing this error currently, did you find a solution or work around for it?
from node-canvas.
Any solution for this issue? also facing this issue right now
from node-canvas.
Related Issues (20)
- The loadImage() method can fail with Request timed out error on older hardware HOT 2
- Mark TextMetrics#fontBoundingBoxAscent etc. as unimplemented HOT 1
- Cannot install canvas on apple silicon HOT 13
- SVG cannot load the image link & font CSS HOT 1
- Move away from GTK 2 to newer libraries on Windows HOT 1
- Unexpected font fallback strategy on Linux
- npm intall not working HOT 9
- mac OS 14 => Cant install despite all other issues and installation guide HOT 6
- Canvas installation failure with Node v20.12.1 HOT 2
- Running electron-builder on Win11 fails when package "pdfjs-dist" is included because of ~/node_modules/canvas HOT 3
- How to use prebuild for AWS lambda? HOT 1
- npm intall not working on node v22 HOT 9
- loadImage function is not allowing use of await keyword HOT 1
- Canvas fails to import after install HOT 2
- installation error due to the dependency of node-pre-gyp ERR i've spend 1 day's solving this HOT 3
- Calling `registerFont()` on multiple fonts in same family appears to break prior registration (Avenir Next Rounded)
- 'colorSpace' missing from the declaration of ImageData
- gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyps HOT 1
- node-canvas wont install, what so ever HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-canvas.