Created
January 11, 2017 01:49
-
-
Save MFry/6a4255e92df24adeead86885d62fa9b9 to your computer and use it in GitHub Desktop.
Fixing global npm installed modules for git bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!