nrwl / nx

Smart Monorepos · Fast CI

Home Page:https://nx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Nx CLI could not find or load the native binary for your supported platform (win32-x64)

muhammaduxair opened this issue · comments

Current Behavior

I want to create a fresh nx workspace with preset of an Angular app but facing this issue:
image

Expected Behavior

No error message when creating new nx workspace in Windows (win32-x64)

GitHub Repo

No response

Steps to Reproduce

  1. run command npx create-nx-workspace@latest standalone-org --preset=angular-standalone

Nx Report

-

Failure Logs

NX   Missing Platform Dependency

The Nx CLI could not find or load the native binary for your supported platform (win32-x64).
This likely means that optional dependencies were not installed correctly, or your system is missing some system dependencies.
For more information please see https://nx.dev/troubleshooting/troubleshoot-nx-install-issues

Package Manager Version

No response

Operating System

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

Additional Information

No response

Something is going on here. See #26930

Hey thanks for the report!
Did you go through the Nx Install troubleshooting guide?
Issues like this are often related to nvm or node installation issues.

https://nx.dev/troubleshooting/troubleshoot-nx-install-issues

Please let me know if you've gone through the steps in here and are still facing issues.

@MaxKless Please see my comments in #26930.

I don't understand the troubleshooting guide.

Does it mean the whole initial installation, eg npx create-nx-workspace...?

In my case, that would be quite onerous. I have already gone through the whole installation process and that seemed to work. It is only when I issue an nx command I get the error message.

I did eventually find a pretty simple workaround that might help you trace the problem. See my comment here: #26930 (comment).

It is strange that this has just started happening. Over the years, I have created several angular mono repos for different clients, and this has never been a problem.