Hi, I am trying to follow the documented steps for setting up tab completion for npm commands. For example, I want:
npm run-script s=>
npm run-script start-fresh(I have a
start-freshtask registered in my package.json
I am executing
. <(npm completion) in my bash shell session. However, none of these completions occur, only filenames are completing.
For what it’s worth, I am using Node.js 10, nodenv, direnv, Homebrew, macOS 10.12.
I am able to tab complete other application such as make and Maven on top of nodenv and direnv, just not NPM.