sw-precache : Generates a service worker to cache your local App Shell resources.. You can installing sw-precache 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 sw-precache $ sudo npm install -g sw-precache
If want to update the sw-precache package execute the command as below,
$ sudo npm update sw-precache
Update package globally,
$ npm install -g sw-precache
$ sudo git clone https://github.com/rektide/sw-precache.git
$ sudo npm install -g ./sw-precache
sw-precache@5.2.0 /usr/lib/node_modules/sw-precache
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall sw-precache
| Package Name | sw-precache |
| Version | 5.2.0 |
| Description | Generates a service worker to cache your local App Shell resources. |
| Released Date | 2017-06-13T17:15:01.676Z |
| Published by | jeffposnick |
| How to Learn | https://www.npmjs.com/package/sw-precache/tutorial |