Skip to content

Commit 5c07c3c

Browse files
committed
fixed permission error with global installation
1 parent a620ba6 commit 5c07c3c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ RUN apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 li
66
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 \
77
libnss3 lsb-release xdg-utils wget jq && apt-get autoremove -y
88

9+
RUN mkdir ~/.npm-global && \
10+
npm config set prefix '~/.npm-global' && \
11+
export PATH=~/.npm-global/bin:$PATH
12+
913
RUN npm config set cache -g ./.npm-cache && \
10-
npm -g install @angular/cli && \
14+
sudo npm -g install @angular/cli --unsafe-perm=true && \
1115
npm -g install gulp && \
12-
npm -g install puppeteer && \
16+
sudo npm -g install puppeteer && \
1317
npm -g install @sentry/cli && \
1418
npm install

0 commit comments

Comments
 (0)