Destroy npm cache (./node_modules/) based on a hash of package.json (or, if present: npm-shrinkwrap.json)?

We’re having exactly the same issue. It means every time we branch, we’ve got to remember to rebuilt without the cache.

Here’s our original forum posting: Npm bcrypt binary not saved to cache?

Is there any work around at all for this?