Skip to content

Instantly share code, notes, and snippets.

@asathoor
Created January 6, 2019 04:45
Show Gist options
  • Save asathoor/7923b10107edfca22633a992269b0abe to your computer and use it in GitHub Desktop.
Save asathoor/7923b10107edfca22633a992269b0abe to your computer and use it in GitHub Desktop.
part of a solution where Manjaro refused to update because NPM had conflicting versions.

Remove troublemakers

Run the file as sudo from a terminal:

sudo ./removeTroubleMakers.bash

Then reinstall npm either via pacman or the GUI in Manjaro.

rm /usr/lib/node_modules/npm/.licensee.json
rm /usr/lib/node_modules/npm/node_modules/ci-info/vendors.json
rm /usr/lib/node_modules/npm/node_modules/graceful-fs/clone.js
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/chownr/LICENSE
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/chownr/README.md
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/chownr/chownr.js
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/chownr/package.json
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/minipass/LICENSE
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/minipass/README.md
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js
rm /usr/lib/node_modules/npm/node_modules/tar/node_modules/minipass/package.json
@asathoor
Copy link
Author

asathoor commented Jan 6, 2019

Read about the NPM related problem and solution on my blog Pers Computer Cyprianus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment