Skip to content

Cannot install on arm #627

Description

@EdwardMoyse

The failure mode is:

➤ YN0009: │ canvas@npm:2.11.2 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/j6/cv3xx2910nx_pg7v2t8czqzc0000gn/T/xfs-34791f8f/build.log)
➤ YN0009: │ gl@npm:6.0.2 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/j6/cv3xx2910nx_pg7v2t8czqzc0000gn/T/xfs-d881d6fe/build.log)
➤ YN0007: │ nx@npm:16.6.0 [73c33] must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 1m 37s

I have tried:

brew install pkg-config cairo pango libpng jpeg giflib librsvg

as proposed here: https://stackoverflow.com/questions/74239415/unable-to-install-node-canvas-on-m1-mac

But this didn't work. I think it MIGHT be related to c++17, but the instructions to:

# For macOS Ventura you may need to specify C++ version, e.g. yarn install -std=c++17

no longer work:

phoenix % yarn install -std=c++17
Unknown Syntax Error: Invalid option name ("-std=c++17").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions