Commit 8c1b9ca
authored
docs: improve documentation on resolving EACCES (npm#1711)
Simplify the steps a bit: - Backing up the computer and creating the directory is not necessary, since it's created automatically by npm. - Use the ~/.local directory which is the standard place for user-specific software, and likely to already be in the user's PATH. - `export` is not needed since PATH is already exported. - Add a note for zsh which doesn't use ~/.profile. - Use a different package as an example, since jshint is not regularly updated, and linters should generally be in `devDependencies` and used through npm scripts. - Ensure the user can run the installed tool. - Remove mention of `NPM_CONFIG_PREFIX` which is not sufficient, since the PATH still needs to be updated to use global tools.1 parent ae95f55 commit 8c1b9ca
File tree
1 file changed
+14
-16
lines changed- content/packages-and-modules/getting-packages-from-the-registry
1 file changed
+14
-16
lines changedLines changed: 14 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
| 38 | + | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
| 41 | + | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | | - | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
| 59 | + | |
62 | 60 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
0 commit comments