Skip to content

Error: The package "esbuild-darwin-64" could not be found, and is needed by esbuild. #5413

@aberllin

Description

@aberllin

Description

When attempting to run any test from the project, the error appears Error: The package "esbuild-darwin-64" could not be found, and is needed by esbuild. I already tried to install it, also tried to reinstall packages etc. Event reset mac completely.

URL of Issue(s)

Steps to replicate

I am not sure what could be the steps to reproduce since it even does work on my colleagues' machines. It was also working on mine (macOs m1) until it stopped at one point.

Browser

Google Chrome

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

The error in the browser:
Screenshot 2023-08-08 at 15 51 50

Running npm install esbuild-darwin-64 throws an error:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"x64"} (current: {"os":"darwin","arch":"arm64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  x64
npm ERR! notsup Actual OS:   darwin
npm ERR! notsup Actual Arch: arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions