Closed MJez29 closed 1 year ago
Hi @MJez29! Thanks for reporting this. It might have to do with your installation of nvm. There are a couple of options to fix this. Please let me know if/which of these worked:
If that doesn't work, try installing @nx/nx-darwin-arm64
as a dev dependency and check if that works.
Go to your default terminal (not iTerm) and change the node version there using nvm. VSCode should pick up the correct one
Which version should I change to? 16.18.0 is the only version installed on my system
If that doesn't work, try installing @nx/nx-darwin-arm64 as a dev dependency and check if that works.
I tried this and I got
error @nx/nx-darwin-arm64@16.10.0: The CPU architecture "x64" is incompatible with this module.
error Found incompatible module.
Can you paste the results of nvm list
?
Also, sorry I misread, try installing @nx/nx-darwin-x64
instead.
nvm list
-> v16.18.0
default -> 16 (-> v16.18.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v16.18.0) (default)
stable -> 16.18 (-> v16.18.0) (default)
lts/* -> lts/hydrogen (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.20.1 (-> N/A)
lts/gallium -> v16.18.0
lts/hydrogen -> v18.12.0 (-> N/A)
yarn why @nx/nx-darwin-x64
yarn why @nx/nx-darwin-x64
yarn why v1.22.19
[1/4] 🤔 Why do we have the module "@nx/nx-darwin-x64"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "@nx/nx-darwin-x64@16.7.4"
info Reasons this module exists
- "_project_#nx" depends on it
- Hoisted from "_project_#nx#@nx#nx-darwin-x64"
info Disk size without dependencies: "6.66MB"
info Disk size with unique dependencies: "6.66MB"
info Disk size with transitive dependencies: "6.66MB"
info Number of shared dependencies: 0
weird... definitely upgrade to at least node 18 though, node 16 isn't supported anymore
I tried that but I'm still seeing the issue
$ node --version
v18.18.1
It turns out that I had my architecture set to x64 when I installed node on my M1 (arm64). Re-installing as arm64 fixed the issue
Current Behavior
Expected Behavior
Nx Console can find projects in my Nx workspace.
nx show projects
lists >20 projectsSteps to Reproduce
This is happening on a fresh install of Nx Console
Failure Logs / Images / Videos
In the Nx Console Client logs
Environment