mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-30 08:11:58 +00:00
3741d1aa02
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
16 lines
686 B
Markdown
16 lines
686 B
Markdown
# npx plugin
|
|
|
|
## Deprecation
|
|
|
|
Since npm v7, `npx` has been moved to `npm exec`. With the move, [the `--shell-auto-fallback` argument
|
|
for `npx` has been removed](https://github.com/npm/cli/blob/v7.0.0/docs/content/cli-commands/npm-exec.md#compatibility-with-older-npx-versions):
|
|
|
|
> Shell fallback functionality is removed, as it is not advisable.
|
|
|
|
When using npm v7, you'll get this error:
|
|
|
|
> npx: the --shell-auto-fallback argument has been removed
|
|
|
|
If you get this error, just disable the plugin by removing it from the plugins array in your zshrc file.
|
|
This plugin will no longer be maintained and will be removed in the future, when the older `npx` versions
|
|
are no longer available.
|