-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
Improve doc for Mac OS (Ventura) with homebrew #768
Comments
There can be problems in general with multiple installs of node to different locations. This comes up with Homebrew on Apple Silicon Macs, but not with Intel Macs. https://docs.brew.sh/Installation
Changing the install location takes extra work if you already have some global npm packages installed (like npm itself!), as they will also need uninstalling from the old location and installing in the new location. |
In a general sense, the problem here is multiple installs of node/npm/npx. Would it help if |
Or are people liking this issue more interested in specific help about transitioning in Homebrew? (I wonder if the |
Something I have been thinking about is transferring global packages. That just came up in #800. |
I opened a PR with a detailed walk-through of switching from Homebrew managed Node.js to See #802 |
Merged #802 onto master (without doing a release as such). |
Summary
In the PATH
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin: ...
/opt/homebrew/bin
comes before/usr/local/bin
. As long as there arenode
,npm
ornpx
in the homebrew part,n
will not work as expected.Details
If the user should not fiddle with the path, homebrew has to give up control of node. That in turn means
brew install n
is a good way to getn
installed.There are other issues. A mere
brew uninstall node
is not enough. It does not removenpm
andnpx
.Solution
This did work for me:
The text was updated successfully, but these errors were encountered: