From 70725aa88394df6fc9a0c00cef197e75af96b7ad Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 5 May 2021 14:43:52 +0200 Subject: [PATCH] fix(ci): do not try to install npm globally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both Node.js 12 and Node.js 14 ship with npm@6.x out of the box, and this failed recently on an s390x machine where it tried to write to the already-present Node.js 8 installation, so let’s skip this for now unless that’s a problem too. [2021/05/04 19:24:59.963] ++ npm install -g npm@6 [2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/ansi-regex [2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/aproba [2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/bluebird <...> [2021/05/04 19:25:00.019] npm ERR! Error: EACCES: permission denied, access '/opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/ansi-regex' --- .evergreen/.install_node | 1 - 1 file changed, 1 deletion(-) diff --git a/.evergreen/.install_node b/.evergreen/.install_node index 567580679d..659bff6208 100644 --- a/.evergreen/.install_node +++ b/.evergreen/.install_node @@ -18,7 +18,6 @@ else nvm install --no-progress $NODE_JS_VERSION nvm alias default $NODE_JS_VERSION - npm install -g npm@6 fi . "$BASEDIR/.setup_env"