clear caches before slug compilation

This commit was stolen verbatim from @mojodna:

> node-gyp and NPM both cache resources required during `npm install`. They're not necessary at runtime and only increase the size of the slug, so let's clear them.