Skip to content

Instantly share code, notes, and snippets.

@MFry
Created January 11, 2017 01:49
Show Gist options
  • Save MFry/6a4255e92df24adeead86885d62fa9b9 to your computer and use it in GitHub Desktop.
Save MFry/6a4255e92df24adeead86885d62fa9b9 to your computer and use it in GitHub Desktop.
Fixing global npm installed modules for git bash
# This file is optional and included for completion sake
# if you generate the appropriate .bashrc file and load git-bash this file will be automatically created.
# generated by Git for Windows
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
#If your npm global path is broken (for me it broke after updating git bash) this will fix access to npm global installs
PATH=~/AppData/Roaming/npm:$PATH
# If you are getting ncu issue 136 this fixes the bug. Much thanks @tw0517tw
# Ref: https://github.com/tjunnone/npm-check-updates/issues/136#issuecomment-184275891
alias ncu='winpty ncu.cmd'
@ryanvgates
Copy link

Thank you!

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