fix(docs): Windows examples of commands use proper environment variable templating (#33)
Nathan Fritz committed
Sep 15, 2021 at 06:52 UTC
68b534c228abdd84adf8830d760279ffc04eeab6
1 file changed
+2
-2
content/getting-started/troubleshooting/try-the-latest-stable-version-of-npm.mdx
+2
-2
@@ -85,13 +85,13 @@ npm config get prefix -g
85
If it isn't set to `<X>:\Users\<user>\AppData\Roaming\npm`, you can run the below command to correct it:
86
87
```
88
-npm config set prefix "${APPDATA}/npm" -g
88
+npm config set prefix %APPDATA%\npm -g
89
```
90
91
Incidentally, if you would prefer that packages not be installed to your roaming profile (because you have a quota on your shared network, or it makes logging in or out from a domain sluggish), you can put it in your local app data instead:
92
93
```
94
-npm config set prefix "${LOCALAPPDATA}/npm" -g
94
+npm config set prefix %LOCALAPPDATA%\npm -g
95
```
96
97
...as well as copying `%APPDATA%\npm` to `%LOCALAPPDATA%\npm` (and updating your `%PATH%`, of course).