The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Error while uninstalling ionic on mac
Not able to uninstall the ionic framework. It’s giving me an error which is attached below.
The short version is run this to fix the ownership, then try the uninstall again:
sudo chown -R $(whoami) ~/.npm
The long version and canonical bug is: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.
I tried as you had suggested but not got rid of it.
Please give me the solution for this error.
Drat, that often fixes the issue!
You could go further and take ownership of the npm related directories to avoid needing to use
sudo for the global install. I am not certain it will work.
(Note also, there are other ways of avoiding need for sudo: changing npm global prefix, and installing node+npm to home directory.)