From 6cbadc26d7b4badd199f3f877758b6be8f2c2e37 Mon Sep 17 00:00:00 2001 From: Zhenya Vinogradov Date: Tue, 3 Dec 2019 15:11:47 +0300 Subject: [PATCH] Fix cache location for `npm ci` When you set `` directory in npm config, `npm ci` has been using `` for storing the cache instead of `/_cacache` --- lib/ci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ci.js b/lib/ci.js index a0df3b86ff42b..d5b5c15442512 100644 --- a/lib/ci.js +++ b/lib/ci.js @@ -33,7 +33,7 @@ function ci (args, cb) { } for (const key in npm.config.list[0]) { - if (key !== 'log') { + if (!['log', 'cache'].includes(key)) { opts[key] = npm.config.list[0][key] } }