mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Add Sudo option to npm -g
This commit is contained in:
parent
286c3e5e28
commit
5cc0620196
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue