From a35fa9012fb019cfcf2370cdc83edbd145d66418 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 29 Jan 2018 10:15:41 +0900 Subject: [PATCH] polygerrit: Add note in README about npm install When installing web-component-tester fails with the error: "EACCES: permission denied, mkdir" it can be fixed by adding the `--unsafe-perm=true --allow-root` options as described in [1]. [1] https://github.com/npm/npm/issues/17268#issuecomment-310167614 Change-Id: I397d31209c019ebbe52bf24bd9e359d71863ffd7 --- polygerrit-ui/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polygerrit-ui/README.md b/polygerrit-ui/README.md index 8577a437d0..69cb02b43c 100644 --- a/polygerrit-ui/README.md +++ b/polygerrit-ui/README.md @@ -90,6 +90,9 @@ brew install npm sudo npm install -g web-component-tester ``` +Note: it may be necessary to add the options `--unsafe-perm=true --allow-root` +to the `npm install` command to avoid file permission errors. + Run all web tests: ```sh