Commit ca92818
authored
fix: shell command syntax (#1699)
## Problem
I followed the instructions and got this error when running an NPM
package globally:
```
Path "/Users/me/~/.npm-global/lib/node_modules" does not exist.
Please check the NODE_PATH environment variable.
```
In `.npmrc` the prefix was set to:
```
prefix=~/.npm-global
```
`~` is not expanded here so NPM looks for a literal `~/` path instead of
the home directory.
## Solution
Use the absolute path instead:
```
prefix=/Users/me/.npm-global
```
Run `npm config` without quotes around the path so that `~` is properly
expanded.1 parent 22797a3 commit ca92818
File tree
1 file changed
+1
-1
lines changed- content/packages-and-modules/getting-packages-from-the-registry
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments