Skip to content

Instantly share code, notes, and snippets.

@Wargog
Last active October 3, 2020 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wargog/b7c3317f76663d88f34c478ff5f3ccb0 to your computer and use it in GitHub Desktop.
Save Wargog/b7c3317f76663d88f34c478ff5f3ccb0 to your computer and use it in GitHub Desktop.
Fixes for various system problems

NPM fails to update under NVM due to symlink

Go to nodejs install directory, go into node_modules and move folder npm to different location. Go in the bin folder inside the new npm location and set it as your working directory. Run node npm-cli.js i -g npm@latest and it will update the install in the correct location. After install, delete the temporary npm folder and you're finished.

PuTTY plink will not allow you to save a server fingerprint to cache

Try to connect to the service you're SSH'ing into and automatically accept the key, run echo y | plink -ssh root@REMOTE_IP_HERE "exit"

Git CLI not recognizing keys in use in Sourcetree or Github Desktop

Open Git Bash and run eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa

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