Add Sudo option to npm -g
This commit is contained in:
parent
286c3e5e28
commit
5cc0620196
@ -2,6 +2,7 @@ eval "$(npm completion 2>/dev/null)"
|
|||||||
|
|
||||||
# Install dependencies globally
|
# Install dependencies globally
|
||||||
alias npmg="npm i -g "
|
alias npmg="npm i -g "
|
||||||
|
alias snpmg="sudo npm i -g "
|
||||||
|
|
||||||
# npm package names are lowercase
|
# npm package names are lowercase
|
||||||
# Thus, we've used camelCase for the following aliases:
|
# Thus, we've used camelCase for the following aliases:
|
||||||
|
Loading…
Reference in New Issue
Block a user