mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-18 03:40:08 +00:00
feat(npm): add alias for npm i -f
(#8454)
As documented in the README, `npm i -f` forces npm to install the specified packages from a remote package registry, even if local copies exist on disk caches.
This commit is contained in:
parent
48a3c2f32d
commit
1cc15ca3c2
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ plugins=(... npm)
|
||||||
| `npmg` | `npm i -g` | Install dependencies globally |
|
| `npmg` | `npm i -g` | Install dependencies globally |
|
||||||
| `npmS` | `npm i -S` | Install and save to dependencies in your package.json |
|
| `npmS` | `npm i -S` | Install and save to dependencies in your package.json |
|
||||||
| `npmD` | `npm i -D` | Install and save to dev-dependencies in your package.json |
|
| `npmD` | `npm i -D` | Install and save to dev-dependencies in your package.json |
|
||||||
|
| `npmF` | `npm i -f` | Force install from remote registries ignoring local cache |
|
||||||
| `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory |
|
| `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory |
|
||||||
| `npmO` | `npm outdated` | Check which npm modules are outdated |
|
| `npmO` | `npm outdated` | Check which npm modules are outdated |
|
||||||
| `npmV` | `npm -v` | Check package versions |
|
| `npmV` | `npm -v` | Check package versions |
|
||||||
|
|
|
@ -27,6 +27,9 @@ alias npmS="npm i -S "
|
||||||
# npmd is used by https://github.com/dominictarr/npmd
|
# npmd is used by https://github.com/dominictarr/npmd
|
||||||
alias npmD="npm i -D "
|
alias npmD="npm i -D "
|
||||||
|
|
||||||
|
# Force npm to fetch remote resources even if a local copy exists on disk.
|
||||||
|
alias npmF='npm i -f'
|
||||||
|
|
||||||
# Execute command from node_modules folder based on current directory
|
# Execute command from node_modules folder based on current directory
|
||||||
# i.e npmE gulp
|
# i.e npmE gulp
|
||||||
alias npmE='PATH="$(npm bin)":"$PATH"'
|
alias npmE='PATH="$(npm bin)":"$PATH"'
|
||||||
|
|
Loading…
Reference in a new issue