diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-01-26 17:13:10 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-01-26 17:13:10 +0100 |
commit | 3741d1aa0253291c432e6ce3469f1d16dedbc914 (patch) | |
tree | 48973cf3f3de1d82351883294be0dd487d1faff3 /plugins/npx/README.md | |
parent | fc40b53e6460560ed9b256deb87f2165f8d48f1f (diff) | |
download | zsh-3741d1aa0253291c432e6ce3469f1d16dedbc914.tar.gz zsh-3741d1aa0253291c432e6ce3469f1d16dedbc914.tar.bz2 zsh-3741d1aa0253291c432e6ce3469f1d16dedbc914.zip |
fix(npx)!: detect new `npx` versions and fail gracefully (#10452)
BREAKING CHANGE: the `npx` plugin used a feature of `npx` to check for
npm packages and run them if a command was not found. This feature was
removed in v7.0.0 and was deemed insecure. The `npx` plugin is now
officially deprecated and will be removed soon.
Fixes #10452
Diffstat (limited to 'plugins/npx/README.md')
-rw-r--r-- | plugins/npx/README.md | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/plugins/npx/README.md b/plugins/npx/README.md index 41e4c1352..4b2aba8f0 100644 --- a/plugins/npx/README.md +++ b/plugins/npx/README.md @@ -1,27 +1,4 @@ -# NPX Plugin - -> npx(1) -- execute npm package binaries. ([more info](https://github.com/npm/npx)) - -This plugin automatically registers npx command-not-found handler if `npx` exists in your `$PATH`. - -To use it, add `npx` to the plugins array in your zshrc file: - -```zsh -plugins=(.... npx) -``` - -## Note - -The shell auto-fallback doesn't auto-install plain packages. In order to get it to install something, you need to add `@`: - -``` -➜ jasmine@latest # or just `jasmine@` -npx: installed 13 in 1.896s -Randomized with seed 54385 -Started -``` - -It does it this way so folks using the fallback don't accidentally try to install regular typoes. +# npx plugin ## Deprecation |