diff options
author | Mauro Porras <167700+mauroporras@users.noreply.github.com> | 2021-04-25 12:02:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 19:02:39 +0200 |
commit | 1cc15ca3c23ba1a2b5236432bc62eb652c98972d (patch) | |
tree | 52aad50674647956f7816a3a47722c98358e4588 /plugins/npm/npm.plugin.zsh | |
parent | 48a3c2f32d1a4643db367eed4d6c53768c3847b1 (diff) | |
download | zsh-1cc15ca3c23ba1a2b5236432bc62eb652c98972d.tar.gz zsh-1cc15ca3c23ba1a2b5236432bc62eb652c98972d.tar.bz2 zsh-1cc15ca3c23ba1a2b5236432bc62eb652c98972d.zip |
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.
Diffstat (limited to 'plugins/npm/npm.plugin.zsh')
-rw-r--r-- | plugins/npm/npm.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index 87c68f3fb..93de9cba3 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -27,6 +27,9 @@ alias npmS="npm i -S " # npmd is used by https://github.com/dominictarr/npmd 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 # i.e npmE gulp alias npmE='PATH="$(npm bin)":"$PATH"' |