Skip to content

Commit

Permalink
docs: update npm-global folder location (npm#1262)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdsadiq committed Sep 5, 2024
1 parent cb4f6b1 commit 8de2ed8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To minimize the chance of permissions errors, you can configure npm to use a dif
2. On the command line, in your home directory, create a directory for global installations:

```
mkdir ~/.npm-global
mkdir -p ~/.npm-global/lib
```

3. Configure npm to use the new directory path:
Expand Down

0 comments on commit 8de2ed8

Please sign in to comment.