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

Supplemental addition for troubleshooting global installs of nx #30058

Open
1 of 4 tasks
pitoniak32 opened this issue Feb 15, 2025 · 0 comments
Open
1 of 4 tasks

Supplemental addition for troubleshooting global installs of nx #30058

pitoniak32 opened this issue Feb 15, 2025 · 0 comments

Comments

@pitoniak32
Copy link

Documentation issue

  • Reporting a typo
  • Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

https://nx.dev/troubleshooting/troubleshoot-nx-install-issues#nodejs-installation-issues

Additional context or description

I would like to add an improvement to the docs to describe a possible edge case that is not very clear to fix.

I had a global install of nx using a node version that I installed a long time ago and forgot how I had installed it. This node version was installed using Homebrew which is important since I was trying to upgrade my global install of nx to get rid of the warning message.

When I ran which nx I got:

❯ which nx
/opt/homebrew/bin/nx

I thought that I had installed nx with brew, but after checking brew list and brew info there was no nx installed, and googling showed no results of nx ever being installed through brew. I had already tried using npm uninstall -g nx but that didn't work either because I had switched to a node version manager. and even when disabling the version manager it wasn't using the brew installed version of node.

So ultimately the fix was use the brew installed npm directly /opt/homebrew/npm uninstall -g nx. Then I was able to reinstall using my fnm node and pnpm :)

My proposal is add an entry to troubleshooting with node to add a note about /opt/homebrew/bin/nx being shown with which nx even though it was installed using npm i -g nx and mention the fix

Thank you for the awesome project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant