snippetbashTip
npm completion — Enable or set up tab-completion for npm commands. More information: <https://docs.npmjs.com/cli/npm-
Viewed 0 times
npm completioncommandenableclitabsetforcompletion
Problem
How to use the
npm completion command: Enable or set up tab-completion for npm commands. More information: <https://docs.npmjs.com/cli/npm-completion/>.Solution
npm completion — Enable or set up tab-completion for npm commands. More information: <https://docs.npmjs.com/cli/npm-completion/>.Enable tab-completion for the current shell session:
npm completionAdd completion to the shell profile (Bash):
npm completion >> ~/.bashrcAdd completion to the shell profile (Zsh):
npm completion >> ~/.zshrcWrite completions script to a specific file:
npm completion > {{path/to/file}}Code Snippets
Enable tab-completion for the current shell session
npm completionAdd completion to the shell profile (Bash)
npm completion >> ~/.bashrcAdd completion to the shell profile (Zsh)
npm completion >> ~/.zshrcWrite completions script to a specific file
npm completion > {{path/to/file}}Context
tldr-pages: common/npm completion
Revisions (0)
No revisions yet.