Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8de2ed8

Browse files
authored
docs: update npm-global folder location (#1262)
added a sub folder "lib" <!-- What / Why --> On following the steps mentioned in https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally, OS : macOS After completing step 5, i tried doing `npx lighthouse https://google.com` and it failed with following error <img width="1334" alt="Screenshot 2024-09-05 at 12 19 59 PM" src="https://github.com/user-attachments/assets/82954e23-3c10-46f5-bdb3-35689ad0ba35"> (Note: website url is just for an example) (Note: i ran the above command, instead of step 6) <!-- Describe the request in detail. What it does and why it's being changed. --> To fix this, make the following change to step 2. Add a subfolder "lib" ## References I can create an issue if needed
1 parent cb4f6b1 commit 8de2ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/packages-and-modules/getting-packages-from-the-registry/resolving-eacces-permissions-errors-when-installing-packages-globally.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To minimize the chance of permissions errors, you can configure npm to use a dif
3131
2. On the command line, in your home directory, create a directory for global installations:
3232

3333
```
34-
mkdir ~/.npm-global
34+
mkdir -p ~/.npm-global/lib
3535
```
3636

3737
3. Configure npm to use the new directory path:

0 commit comments

Comments
 (0)