Skip to content

Commit b15e08f

Browse files
committed
fix: ni-ug use -g flag
1 parent 4db001f commit b15e08f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/npm.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ alias nii='npm install --registry=https://registry.npmjs.org'
3737
alias ni7='npm install --registry=https://repos.saybot.net/repository/alo7npm/'
3838
alias ni-g='npm install -g'
3939
alias ni-g2='npm install --location=global'
40-
alias ni-ug='npm uninstall --location=global'
40+
alias ni-ug='npm uninstall -g'
41+
alias ni-ug2='npm uninstall --location=global'
4142
alias ni-d='npm install --save-dev'
4243
alias ni-s='npm install --save'
4344
alias ni-n='npm install --no-save'
@@ -82,5 +83,5 @@ alias spj='sort-package-json'
8283

8384
# sync current pkg to taobao registry
8485
tbsn() {
85-
cnpm sync "$(npm pkg get name | sed 's/\"//g')"
86+
cnpm sync "$(npm pkg get name | sed 's/\"//g')"
8687
}

0 commit comments

Comments
 (0)