Unable to build on macOS Apple silicon

Hey, I followed the steps from BUILD.md in order to setup development environment.
However, after yarn install from the root directory, I am facing an error as:

➤ YN0076: │ 7zip-bin-linux@npm:1.3.1 The darwin-arm64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ 7zip-bin-win@npm:2.2.0 The darwin-arm64 architecture is incompatible with this module, link skipped.
➤ YN0007: │ @joplin/app-clipper@workspace:packages/app-clipper must be built because it never has been before or the last one failed
➤ YN0007: │ husky@npm:3.1.0 must be built because it never has been before or the last one failed
➤ YN0007: │ nodemon@npm:2.0.15 must be built because it never has been before or the last one failed
➤ YN0007: │ keytar@npm:7.7.0 must be built because it never has been before or the last one failed
➤ YN0007: │ sharp@npm:0.26.3 must be built because it never has been before or the last one failed
➤ YN0007: │ sqlite3@npm:5.0.2 [ea905] must be built because it never has been before or the last one failed
➤ YN0007: │ fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=18f3a7 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
➤ YN0007: │ sharp@npm:0.25.4 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/fontawesome-free@npm:5.15.4 must be built because it never has been before or the last one failed
➤ YN0007: │ electron@npm:14.1.0 must be built because it never has been before or the last one failed
➤ YN0007: │ lzma-native@npm:8.0.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/fontawesome-common-types@npm:0.2.36 must be built because it never has been before or the last one failed
➤ YN0007: │ ejs@npm:2.7.4 must be built because it never has been before or the last one failed
➤ YN0007: │ sqlite3@npm:4.2.0 must be built because it never has been before or the last one failed
➤ YN0007: │ root@workspace:. must be built because it never has been before or the last one failed
➤ YN0007: │ @joplin/app-desktop@workspace:packages/app-desktop must be built because it never has been before or the last one failed
➤ YN0007: │ @joplin/app-mobile@workspace:packages/app-mobile must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/fontawesome-svg-core@npm:1.2.36 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/free-regular-svg-icons@npm:5.15.4 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/free-solid-svg-icons@npm:5.15.4 must be built because it never has been before or the last one failed
➤ YN0009: │ root@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/1q/pjx8p9_j5qz2cw3d2c0frz7m0000gn/T/xfs-096d8f2b/build.log)
➤ YN0000: └ Completed in 2m 9s
➤ YN0000: Failed with errors in 2m 10s

Logs: build.log (42.8 KB)

Platform: MacOS Monterey 12.1 Apple silicon.

Thanks in advance :slight_smile:

Hey Aryan,

I faced the same issue on Mac.
You can fix it by installing vips.

brew install vips

add

  "resolutions": {
    "minipass": "3.1.6"
  }

in package.json

Refer here Facing a build error on Mac - #10 by shreyaansjain06

Yup, I tried that as well but in vain.

Unfortunately, I am facing the same error after this.
Before creating a new topic, I read the entire thread - Facing a build error on Mac but couldn't figure out in my case.

Here's the set of steps I took -

  • brew install cocoapods
  • yarn install
  • The later step failed as there was a issue with sharp saying that it couldn't be installed properly due to vips package missing out.
  • Hence, brew install vips
  • After these steps, I am facing the issue listed above (in topic description).

Wow! I re-cloned the repository and it's successfully built now! Thanks :slight_smile:

2 Likes

OK nice

1 Like