When you don't want to go the ionic Cordova folder and physically remove the node_module to install the new one using npm, just type sudo rm -rf node_modules in the console. You must be in the root folder or in the app folder for you to able to remove the folder from command prompt.