Closed chriscurnow closed 1 month ago
I actually found a very simple fix for this but I'll leave the issue open because what caused it to happen in the first place is still a bug.
I have a few angular monorepos I have created. I looked at them to see if I could find a difference between them and my latest repo.
It turns out that there is a directory missing in my repo.
The missing directory is node_modules/@nx/nx-darwin-arm64
There is a directory there I think should not be there which is node_modules/@nx/nx-darwin-x64
.
Anyway copying the missing directory from another repo fixed the problem.
Is anyone going to look at this issue?
Hello :) Sorry for the long response time, there are a lot of issues and we don't always find time to respond to every one.
To me it sounds like it might be this bug from npm where optional dependencies are not always installed: https://github.com/npm/cli/issues/4828 Since you can fix it by adding that repo, it sounds even more likely.
Can you try deleting node_modules
and reinstalling. In that case, the dependency should be correctly installed. Please let me know if that worked :)
Hi @MaxKless. That was it. Thanks so much for your help. I can see you get a lot of issues and this really wasn't urgent. It just bothered me that a brand new installation should do that. Anyway, all good now.
Current Behavior
When I run any nx command (eg nx list) I get the message:
Missing Platform Dependency
The Nx CLI could not find or load the native binary for your supported platform (darwin-arm64). 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
I realise this is a duplicate of #20280 but none of the discussion there seemed to help.
Expected Behavior
The command works
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace@latest angular-monorepo --preset=angular-monorepo
npm install -S @angular/material
)nx list @angular/material
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
I have been using Nx for about five years now and have never seen this before. I have created new monorepos many times.
This is a brand new installation of Nx. I updated Nx to latest globally. I read the information at https://nx.dev/troubleshooting/troubleshoot-nx-install-issues, but I didn't understand it – when you say 'Running your install command with ...' which install do you mean?