How to Reinstall Broken npm

Delete the Global NPM Folder https://stackoverflow.com/a/5926706/349659 npm list -g For Windows this will most likely be: %AppData%\npm\node_modules You can paste that into a folder’s address bar and it will take you there. Once there delete the folder named npm. Download the Latest Release of NPM https://github.com/npm/cli/releases/latest Grab the zip and unzip it to your node_modules … Read more

Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?

The following is the un-installation for PostgreSQL 9.1 installed using the EnterpriseDB installer. You most probably have to replace folder /9.1/ with your version number. If /Library/Postgresql/ doesn’t exist then you probably installed PostgreSQL with a different method like homebrew or Postgres.app. To remove the EnterpriseDB One-Click install of PostgreSQL 9.1: Open a terminal window. … Read more

Ask for password before uninstalling application

you should try something like the following : 1st – declare your broadcast recevier in the Manifest file , that will listen to QUERY_PACKAGE_RESTART : <receiver android:name=”.UninstallReceiver”> <intent-filter android:priority=”999999″> <action android:name=”android.intent.action.QUERY_PACKAGE_RESTART” /> <data android:scheme=”package” /> </intent-filter> </receiver> 2nd – your UnunstallIntentReceiver java class like the following : public class UninstallReceiver extends BroadcastReceiver{ @Override public void … Read more

Android – Preserve or delete files created by the application on uninstall

Seems like there have been some developments since 2009 :). From the documentation: If you’re using API Level 8 or greater, use getExternalCacheDir() to open a File that represents the external storage directory where you should save cache files. If the user uninstalls your application, these files will be automatically deleted. However, during the life … Read more