From fd0a802ec468ec7b98d6c15934c355fef0e7ff60 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` PR-URL: https://github.com/npm/cli/pull/550 Credit: @zhenyavinogradov Close: #550 Reviewed-by: @ruyadorno --- 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] } }