You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Documentation issue
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:I thought that I had installed nx with brew, but after checking
brew list
andbrew info
there was no nx installed, and googling showed no results of nx ever being installed through brew. I had already tried usingnpm 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 withwhich nx
even though it was installed usingnpm i -g nx
and mention the fixThank you for the awesome project!
The text was updated successfully, but these errors were encountered: