Git Product home page Git Product logo

Comments (6)

inverse avatar inverse commented on June 11, 2024 1

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.

weskerty avatar weskerty commented on June 11, 2024

no work arm64

from node-canvas.

arcovaa avatar arcovaa commented on June 11, 2024

no work arm64

hey man, im actually running
x86_64 on ubuntu, intel_64 bits, shouldn't it work for intel?

from node-canvas.

chotixity avatar chotixity commented on June 11, 2024

I'm facing this error currently, did you find a solution or work around for it?

from node-canvas.

danidaryaweesh avatar danidaryaweesh commented on June 11, 2024

Any solution for this issue? also facing this issue right now

from node-canvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.