It's quite simple, autocomplete always works less when it starts with npm.
Can anyone explain me what this is and how to fix it?
It's quite simple, autocomplete always works less when it starts with npm.
Can anyone explain me what this is and how to fix it?
The completion of npm in your shell is not shipped from the factory. To do this, npm recommends npm-completion .
It is already native to npm, you just need to call it at startup of your shell. Add the following to your shell configuration file ( ~/.zshrc
if you use zsh, or ~/.bashrc
, if you use bash):
source <(npm completion)