how to erase Ionic completely from the machine

Asked

Viewed 134 times

-2

Can someone help me?

guys, I’m running npm Uninstall -g Ionic to uninstall Ionic, but presents following errors:

Error: Cannot find module 'C:\Users\ender\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'
[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:864:27)[39m
[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)[39m
[90m    at internal/main/run_main_module.js:18:47[39m {
  code: [32m'MODULE_NOT_FOUND'[39m,
  requireStack: []
}

1 answer

0

First try to clear the cache with the command:

npm cache clean -f
npm install npm -g

Then you can try to uninstall again with the command :

npm uninstall cordova ionic

If you cannot do the removal and better remove Node with the commands:

npm uninstall node
apt-get purge npm

Browser other questions tagged

You are not signed in. Login or sign up in order to post.