From 84942604ed29bfd19b62fdacafb8f908d5e3f80a Mon Sep 17 00:00:00 2001 From: Eduardo Bizarro Date: Fri, 11 Sep 2020 05:55:30 -0300 Subject: [PATCH] npm madness https://github.com/npm/cli/issues/611 --- php/scripts/alpine/nodeyarn.sh | 2 +- php/scripts/node.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/php/scripts/alpine/nodeyarn.sh b/php/scripts/alpine/nodeyarn.sh index e3b0bfb7..a1f74a7c 100644 --- a/php/scripts/alpine/nodeyarn.sh +++ b/php/scripts/alpine/nodeyarn.sh @@ -4,7 +4,7 @@ set -euo pipefail ln -s /usr/lib/npm/bin/npm-cli.js /usr/bin/npm -npm i -g npm@${NPM_VERSION} +npm i -g --force npm@${NPM_VERSION} curl -o- -L https://yarnpkg.com/install.sh | bash diff --git a/php/scripts/node.sh b/php/scripts/node.sh index 80d7b952..20f228f8 100644 --- a/php/scripts/node.sh +++ b/php/scripts/node.sh @@ -5,7 +5,7 @@ set -euo pipefail # NODE JS curl -sL https://deb.nodesource.com/setup_12.x | bash - \ && DEBIAN_FRONTEND=noninteractive apt-get install nodejs -yq \ - && npm i -g npm \ + && npm i -g --force npm \ && curl -o- -L https://yarnpkg.com/install.sh | bash \ && npm cache clean --force