From b47bbea3db005afdf8e3697c7634c9fff34ec75d Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 4 Dec 2016 21:30:03 +0800 Subject: [PATCH] node-red: npm install --unsafe-perm --- node-red/Dockerfile | 6 +++--- node-red/arm/Dockerfile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/node-red/Dockerfile b/node-red/Dockerfile index fb111cf..1e41788 100644 --- a/node-red/Dockerfile +++ b/node-red/Dockerfile @@ -11,9 +11,9 @@ RUN set -xe \ nodejs-lts \ python \ python-dev \ - && npm install -g node-red \ - node-red-admin \ - node-red-dashboard \ + && npm install -g --unsafe-perm node-red \ + node-red-admin \ + node-red-dashboard \ && apk del build-base \ python-dev \ && rm -rf /tmp/npm-* diff --git a/node-red/arm/Dockerfile b/node-red/arm/Dockerfile index 2565b60..629846e 100644 --- a/node-red/arm/Dockerfile +++ b/node-red/arm/Dockerfile @@ -15,9 +15,9 @@ RUN set -xe \ sudo \ && curl https://bootstrap.pypa.io/get-pip.py | python \ && pip install rpi.gpio \ - && npm install -g node-red \ - node-red-admin \ - node-red-dashboard \ + && npm install -g --unsafe-perm node-red \ + node-red-admin \ + node-red-dashboard \ && apk del build-base \ python-dev \ && rm -rf /tmp/npm-*