Install npx using npm

Check npx version,

$ npx --version
6.11.3

if it is not installed or if you want to upgrade npx command to the latest version, use following command to install it

$ npm install -g npx
/Users/<home-dir>/.nvm/versions/node/v12.11.1/bin/npx -> /Users/<home-dir>/.nvm/versions/node/v12.11.1/lib/node_modules/npx/index.js
 npx@10.2.2
 added 493 packages from 654 contributors in 5.221s 

Now, if you check npx version again you will see 10.2.2

$ npx --version
10.2.2