1

I want to remove node to install it with nvm but I can't uninstall it. I installed node twice, once I installed it wrong and the second time I did it right, I uninstalled one of the two nodes but the second time I don't know where it is and because of that I can't uninstall it.

I already try:

  • brew uninstall --force node
  • look tutorial how to uninstall node js from mac M1

Does anyone know how to find node location on mac M1 ?

Israil D
  • 59
  • 7

2 Answers2

0

Try with this location:

/opt/homebrew/Cellar/node

And maybe this post will be useful: How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

nosequeweaponer
  • 511
  • 10
  • 38
-1

It is dependent by your packet manager. For example, asdf version manager show info like that:

asdf info nodejs
OS:
Linux slonzal 5.19.0-26-generic #27-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 23 20:44:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-ubuntu-linux-gnu)

ASDF VERSION:
v0.10.2-7e7a1fa

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/slon/.asdf

ASDF INSTALLED PLUGINS:
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git 
yarn                         https://github.com/twuni/asdf-yarn.git main 376c540

Other version managers have own syntax. Try to npm -h, if you use npm.

Sergio Belevskij
  • 2,478
  • 25
  • 24