From f09be932eb192fb1d3fba89c3fb1ae24f6033a7b Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 24 Jan 2021 16:52:10 +0000 Subject: [PATCH] Docs: add info about npm v7 directory ownership change --- .github/ISSUE_TEMPLATE/installation.md | 4 +++- docs/install.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/installation.md b/.github/ISSUE_TEMPLATE/installation.md index 890ab61a..7bd2101f 100644 --- a/.github/ISSUE_TEMPLATE/installation.md +++ b/.github/ISSUE_TEMPLATE/installation.md @@ -11,7 +11,9 @@ Have you ensured the architecture and platform of Node.js used for `npm install` Are you using the latest version? Is the version currently in use as reported by `npm ls sharp` the same as the latest version as reported by `npm view sharp dist-tags.latest`? -If you are installing as a `root` or `sudo` user, have you tried with the `npm install --unsafe-perm` flag? +If you are using npm v6 or earlier and installing as a `root` or `sudo` user, have you tried with the `npm install --unsafe-perm` flag? + +If you are using npm v7, does the user running `npm install` own the directory it is run in? If you are using the `ignore-scripts` feature of `npm`, have you tried with the `npm install --ignore-scripts=false` flag? diff --git a/docs/install.md b/docs/install.md index 5e9adc8d..18af5a90 100644 --- a/docs/install.md +++ b/docs/install.md @@ -50,7 +50,9 @@ The following platforms require compilation of both libvips and sharp from sourc The architecture and platform of Node.js used for `npm install` must be the same as the architecture and platform of Node.js used at runtime. -The `npm install --unsafe-perm` flag must be used when installing as `root` or a `sudo` user. +When using npm v6 or earlier, the `npm install --unsafe-perm` flag must be used when installing as `root` or a `sudo` user. + +When using npm v7, the user running `npm install` must own the directory it is run in. The `npm install --ignore-scripts=false` flag must be used when `npm` has been configured to ignore installation scripts.