Skip to content

Failed to install with yarn on Mac M3 Pro #9243

@chornbec

Description

@chornbec

I'm using latest version of Node (v22.5.1) and yarn (v1.22.22) and the yarn create keystone-app fails with "Failed to install with yarn", but succeeds with the npm installation fallback. I'd rather use yarn, however. Here is the command output:

> yarn create keystone-app
yarn create v1.22.22
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed "create-keystone-app@9.0.1" with binaries:
      - create-keystone-app
[################################################################################################################] 164/164
✨ You're about to generate a project using Keystone 6 packages.

✔ What directory should create-keystone-app generate your app into? · jade_backend_keystone

⠸ Installing dependencies with yarn. This may take a few minutes.
⚠ Failed to install with yarn.
✔ Installed dependencies with npm.

Reverting to Node 16 as suggested in the below discussion did not work for me. Is there any way I should debug this? Any solutions?

Discussed in #7856

Originally posted by saintsalo August 28, 2022
I just got a Mac M1 and noticed that installing keystone with yarn create keystone-app will fail to install with yarn:

❯ yarn create keystone-app
yarn create v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed "create-keystone-app@7.0.1" with binaries:
      - create-keystone-app
[################################################################################################################################################################] 361/361
✨ You're about to generate a project using Keystone 6 packages.

✔ What directory should create-keystone-app generate your app into? · test

⠹ Installing dependencies with yarn. This may take a few minutes.
⚠ Failed to install with yarn.

I'm currently using yarn version 1.22.19
Am I missing something that I need to install?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions