From 044bcbf82d26d7f8ebf817c41b0ef05f8292c739 Mon Sep 17 00:00:00 2001 From: Iain Date: Mon, 9 Nov 2026 12:34:47 +0000 Subject: [PATCH] fix(npm): replace removed `npm bin` in `npmE` (#14250) --- plugins/npm/README.md | 2 +- plugins/npm/npm.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/npm/README.md b/plugins/npm/README.md index 7848a1290..952d24f1f 100644 --- a/plugins/npm/README.md +++ b/plugins/npm/README.md @@ -16,7 +16,7 @@ plugins=(... npm) | `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 | | `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 root)/.bin":"$PATH"` | Run command from node_modules folder based on current directory | | `npmO` | `npm outdated` | Check which npm modules are outdated | | `npmU` | `npm update` | Update all the packages listed to the latest version | | `npmV` | `npm -v` | Check package versions | diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index c333f76ed..0477cddfa 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -32,7 +32,7 @@ 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"' +alias npmE='PATH="$(npm root)/.bin":"$PATH"' # Check which npm modules are outdated alias npmO="npm outdated"