Closed hdgarrood closed 5 years ago
How about we set Travis up on this, and pin the node version to whatever we decide to support too?
Yes, good idea, I'll do that next. I would like to go slightly further though: perhaps one job pinned to the minimum node version we support, and then one job for the latest release in each even-numbered release series, so e.g. at the moment we'd have 8.3.0, 8.x latest, 10.x latest, and 12.x latest. See also https://nodejs.org/en/about/releases/
npcache
withcacache
. Thenpcache
package is a shallow wrapper overcacache
with some tweaks to the API it provides, but it refuses to run withnpm < 6.9.0
, which makes node 8 support difficult (because node 8 comes with an older npm).env-paths
package to decide where to put the cached binary. One of the thingsnpcache
does is that it uses npm's cache directory by default; switching tocacache
means that we need to work out where to store caches by ourselves.require('fs').promises
withrequire('util').promisify
because the former is not provided in node 8.Fixes #2