p-timeout : Timeout a promise after a specified amount of time. You can installing p-timeout 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 p-timeout $ sudo npm install -g p-timeout
If want to update the p-timeout package execute the command as below,
$ sudo npm update p-timeout
Update package globally,
$ npm install -g p-timeout
$ sudo git clone https://github.com/rektide/p-timeout.git
$ sudo npm install -g ./p-timeout
p-timeout@2.0.0 /usr/lib/node_modules/p-timeout
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall p-timeout
| Package Name | p-timeout |
| Version | 2.0.0 |
| Description | Timeout a promise after a specified amount of time |
| Released Date | 2017-11-19T09:37:35.081Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/p-timeout/tutorial |