TAB autocomplete does not work with NPM

0

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?

    
asked by anonymous 09.10.2018 / 03:18

1 answer

0

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)
    
09.10.2018 / 05:47