From d93280fe9e70e4ccc0b2f80945f7aa9984dc6730 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Tue, 2 May 2023 13:18:41 -0400 Subject: [PATCH] docs(developing): tip for changing node_modules permissions Co-authored-by: Utku Demir <50655392+Demir-Utku@users.noreply.github.com> --- docs/developing/tips.md | 1 + versioned_docs/version-v5/developing/tips.md | 1 + versioned_docs/version-v6/developing/tips.md | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/developing/tips.md b/docs/developing/tips.md index 1b115a3644a..2adf19ea58d 100644 --- a/docs/developing/tips.md +++ b/docs/developing/tips.md @@ -69,6 +69,7 @@ Change the owner of npm's directories to the current user: ```shell $ sudo chown -R $(whoami) /usr/local/{lib/node_modules,bin,share} +$ sudo chown -R $(whoami) /usr/lib/node_modules $ sudo chown -R $(whoami) ~/.npm ~/.npmrc ``` diff --git a/versioned_docs/version-v5/developing/tips.md b/versioned_docs/version-v5/developing/tips.md index d854de40bea..f5155db1faf 100644 --- a/versioned_docs/version-v5/developing/tips.md +++ b/versioned_docs/version-v5/developing/tips.md @@ -59,6 +59,7 @@ Change the owner of npm's directories to the current user: ```shell $ sudo chown -R $(whoami) /usr/local/{lib/node_modules,bin,share} +$ sudo chown -R $(whoami) /usr/lib/node_modules $ sudo chown -R $(whoami) ~/.npm ~/.npmrc ``` diff --git a/versioned_docs/version-v6/developing/tips.md b/versioned_docs/version-v6/developing/tips.md index 1b115a3644a..2adf19ea58d 100644 --- a/versioned_docs/version-v6/developing/tips.md +++ b/versioned_docs/version-v6/developing/tips.md @@ -69,6 +69,7 @@ Change the owner of npm's directories to the current user: ```shell $ sudo chown -R $(whoami) /usr/local/{lib/node_modules,bin,share} +$ sudo chown -R $(whoami) /usr/lib/node_modules $ sudo chown -R $(whoami) ~/.npm ~/.npmrc ```