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