From 318482d3ff96f15fb6b6ad943aeece612d791653 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Fri, 1 Sep 2017 20:22:55 +0200 Subject: [PATCH] docker: fix npm5 installation --- Dockerfile | 5 +++-- Dockerfile-Production | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17268dc08d..8291ecd6f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM node:boron -# Upgrade NPM to v5 -RUN npm install -g npm@5 +# Upgrade NPM to v5 (Yarn is needed because of this bug https://github.com/npm/npm/issues/16807) +# The used solution is suggested here https://github.com/npm/npm/issues/16807#issuecomment-313591975 +RUN yarn global add npm@5 # Install global packages RUN npm install -g gulp grunt-cli bower mocha diff --git a/Dockerfile-Production b/Dockerfile-Production index e95dd80094..59c29dead2 100644 --- a/Dockerfile-Production +++ b/Dockerfile-Production @@ -1,7 +1,8 @@ FROM node:boron -# Upgrade NPM to v5 -RUN npm install -g npm@5 +# Upgrade NPM to v5 (Yarn is needed because of this bug https://github.com/npm/npm/issues/16807) +# The used solution is suggested here https://github.com/npm/npm/issues/16807#issuecomment-313591975 +RUN yarn global add npm@5 # Install global packages RUN npm install -g gulp grunt-cli bower mocha