docker: fix npm5 installation

This commit is contained in:
Matteo Pagliazzi 2017-09-01 20:22:55 +02:00
parent 2e4f665fa5
commit 318482d3ff
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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