Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Nx CLI could not find or load the native binary for your supported platform (linux-arm64). #19604

Closed
3 of 4 tasks
vmashnitskaya opened this issue Oct 13, 2023 · 3 comments
Closed
3 of 4 tasks

Comments

@vmashnitskaya
Copy link

Current Behavior

I just migrated using nx migrate from 16.0 to 16.5.3

I am running my application in a docker environment.

Now I get the following error when I try to run it :
The Nx CLI could not find or load the native binary for your supported platform (linux-arm64).

I have seen the documentation that was provided to deal with such an issue. But there are several issues with it:

  1. Our team does not use npm i on a regular basis, but rather npm ci both locally and on CI to ensure version consistency. Moreover, we have different OS in a team and it means that team members will not be able to run the same package versions locally using npm ci.
  2. Although I can use npm i in docker, it will be an incorrect approach for me because I will not be able to run the same versions in CI.

How can I achieve the dependencies consistency in such case?

Expected Behavior

The applicaton is run correctly on all platforms with the same package versions.

GitHub Repo

No response

Steps to Reproduce

Nx Report

Node   : 18.18.0
   OS     : darwin-arm64
   npm    : 9.8.1

   nx                 : 16.5.3
   @nx/js             : 16.5.3
   @nx/jest           : 16.5.3
   @nx/linter         : 16.5.3
   @nx/workspace      : 16.5.3
   @nx/cypress        : 16.5.3
   @nx/devkit         : 16.5.3
   @nrwl/devkit       : 15.9.7
   @nx/eslint-plugin  : 16.5.3
   @nx/nest           : 16.5.3
   @nx/next           : 16.5.3
   @nx/node           : 16.5.3
   @nx/react          : 16.5.3
   @nx/rollup         : 16.5.3
   @nrwl/tao          : 16.5.3
   @nx/web            : 16.5.3
   @nx/webpack        : 16.5.3
   typescript         : 5.1.6
   ---------------------------------------
   Community plugins:
   @jscutlery/semver : 2.30.1

Failure Logs

NX   Missing Platform Dependency
The Nx CLI could not find or load the native binary for your supported platform (linux-arm64).
This likely means that optional dependencies were not installed correctly, or your system is missing some system dependencies.

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@AgentEnder
Copy link
Member

Hey @vmashnitskaya - Can you follow the steps here and see if it helps? https://nx.dev/recipes/troubleshooting/troubleshoot-nx-install-issues

@vmashnitskaya
Copy link
Author

It helped, thank you

Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants