NPM & Prevent caching of specific dependencies?



We are doing a build of a Node.js project that brings in a dependency of ours via NPM, pointing to a git URL in GitHub. We were caught out by a change in this dependency, until we understood that CircleCI was caching dependencies.

Is there any way to specifically exclude this dependency from the cache or is there a way to deal with such dependencies?