How do you globally uninstall all dependencies listed in package.json (NPM)?

If using Bash, just switch into the folder that has your package.json file and run the following: for package in `ls node_modules`; do npm uninstall $package; done; In the case of globally-installed packages, switch into your %appdata%/npm folder (if on Windows) and run the same command. EDIT: This command breaks with npm 3.3.6 (Node 5.0). … Read more

Uninstalling Plugin in Vim

If you want to uninstall a plugin which was installed into ~/.vim manually, you should redownload its archive, list its content and manually remove everything, then run :helptags again (this will remove missing tags). If plugin was installed from a vimball, see documentation for :RmVimball. Vimball archives normally have .vba or .vba.gz extensions. In case … Read more

How to prevent an application from being uninstalled?

Ankur, I think the closest thing to what your looking for is the Device Administration feature introduced in 2.2. Once the application is registered as a Device Administrator, it can’t be uninstalled unless its unregistered. This will prevent the app from being uninstalled. While the Device Admin API doesn’t allow for password protection of this … Read more

How to fix pg_dump version mismatch errors?

OS X 10.8 comes with pg_dump version 9.1.4 in the /usr/bin directory, along with psql and other programs that are client-side PostgreSQL tools. It does not mean that PostgreSQL as a server is installed (unless you have OS X Server Edition). So you don’t have to uninstall PostgreSQL because it’s not installed and it’s better … Read more

pip: Uninstalling package from specific directory

Remove them manually. pip does not keep hidden directories of installed packages and scans directories such as /usr/local/lib/python2.7/dist-packages directly to determine what is installed. So, if you installed something using -t just go to the directory you specified and delete all traces, including any metadata files. For example, $ mkdir localpips $ pip install -t … Read more

pip uninstall: “No files were found to uninstall.”

I had the same issue. Using verbose helped me to find out a bit more the reason: $ pip3 uninstall –verbose my-homemade-package Not sure how to uninstall: my-homemade-package e48e635 – Check: /home/olivier/my-homemade-package Can’t uninstall ‘my-homemade-package’. No files were found to uninstall. Removing everything that was ‘my-homemade-package’ related in /usr/local/python2.x and /usr/local/python3.x did not help. I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)