which : Like which(1) unix command. Find the first instance of an executable in the PATH.. You can installing which npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install which $ sudo npm install -g which
If want to update the which package execute the command as below,
$ sudo npm update which
Update package globally,
$ npm install -g which
$ sudo git clone https://github.com/rektide/which.git
$ sudo npm install -g ./which
which@1.3.0 /usr/lib/node_modules/which
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall which
| Package Name | which |
| Version | 1.3.0 |
| Description | Like which(1) unix command. Find the first instance of an executable in the PATH. |
| Released Date | 2017-08-01T00:54:54.042Z |
| Published by | isaacs |
| How to Learn | https://www.npmjs.com/package/which/tutorial |