Add --force option to npm install commands in dockerfiles (#36431)

This commit is contained in:
Wesley Wigham
2020-01-24 15:29:27 -08:00
committed by GitHub
parent 9ef9bb04f1
commit 7c05e1a78c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
FROM node:current
RUN npm install -g yarn lerna
RUN npm install -g yarn lerna --force
RUN git clone https://github.com/OfficeDev/office-ui-fabric-react.git /office-ui-fabric-react
WORKDIR /office-ui-fabric-react
RUN git pull

View File

@@ -2,7 +2,7 @@
FROM node:10
RUN apt-get update
RUN apt-get install libsecret-1-dev libx11-dev libxkbfile-dev -y
RUN npm i -g yarn
RUN npm i -g yarn --force
RUN git clone https://github.com/microsoft/vscode.git /vscode
WORKDIR /vscode
RUN git pull