No matter how many times you call npm uninstall babel,
OR Yarn uninstall -g babel
OR Yarn uninstall -g babel-cli
It does shows updated. And when you check it if it still exists by entering "babel -help"
You get this- >
babel still somewhere in your Mac
I know its frustrating. So I found where these files get stored locally and after removing them from local storage,
I finally got ->
Finally my system doesn't understand what babel is. What we really want
How did I find it:
Finder's search result is not going to give you path of the global babel storage.
I found that there is a folder called /usr in in our real-root directory "Macintosh HD"
It is hidden
So,
Select finder -> Go -> Go to Folder..
And type "/usr".
A new finder window will open and it will show all the files inside it.
Now you can roam around and check all the files you installed, some probably forgotten and never got a chance to remove.
Go to usr/local/bin -> and here you will find the files which you globally installed.
as shown here - > Directory of shortcuts
Again, as you can see, there are arrow signs on the icons, which indicate that these are just the shortcuts. Deleting them will cut the link, but the files will still be there somewhere.
To delete the files, right click on the icon and select "Show Original"
You will be redirected to a folder where you will find babel.js file.
Remember, its again just one file. To completely remove the babel-cli, select the column view in the finder, and you can scroll left and check its parent directories.
And here is where the actual installations are done.
finalpath part 1
finalpath part 2
You can see, just like basic node modules that gets installed in our local web projects, babel-cli and similar such packages gets installed in similar format but in these global location.
Now you can right-click the babel-cli folder and move it to trash.
Hope the hunt is finally over.
babel-cli
installed for different versions of node. What is returned when you runwhich babel
orwhich babel-cli
(whatever the executable name is)? – Dentnvm
doesn't install executables there. Is it possible you also installed babel with another package manager like brew on macOS? – Dentnpm uninstall -g @angular/cli
– Vasty