TAB autocomplete does not work with NPM

Asked

Viewed 22 times

0

It’s quite simple, the autocomplete always works less when it starts with npm.

Can someone explain to me what this is and how to fix it?

1 answer

0

The Completion npm in your shell does not come from factory. For this, npm recommends the npm-Completion.

It is already native to npm, you just need to call it at the startup of your shell. Add the following in your shell’s configuration file (~/.zshrc whether you use zsh, or ~/.bashrc, if you use bash):

source <(npm completion)
  • Thanks! I added this to ~/. zshrc, but it didn’t... It looks like this: # Activating autocomplete after npm source <(npm Completion)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.