@@ -128,7 +128,21 @@ removed 1 package, and changed 60 packages in 5s
128
128
run `npm fund` for details
129
129
```
130
130
131
- Surprisingly, checking the version often reveals the older version:
131
+ The next step is to check the version:
132
+
133
+ <CodeBlock language = " txt" > {
134
+ ` C:\\ >where npm.cmd
135
+ C:\\ >where npm.cmd
136
+ C:\P rogram Files\n odejs\n pm.cmd
137
+ C:\U sers\i lg\A ppData\R oaming\n pm\n pm.cmd
138
+ C:\\ >npm --version
139
+ ${frontMatter .npm_latest_version }
140
+ ` } </CodeBlock >
141
+
142
+ <details >
143
+ <summary >What to do if the update is not effective?</summary >
144
+
145
+ Surprisingly, checking the version may reveal the old version:
132
146
133
147
<CodeBlock language = " txt" > {
134
148
` C:\\ >where npm.cmd
@@ -139,14 +153,15 @@ ${frontMatter.npm_version}
139
153
140
154
This happens because, by default, global Node.js packages on Windows
141
155
are installed in the user home folder, specifically in ` %APPDATA%\npm `
142
- (e.g., ` C:\Users\ilg\AppData\Roaming\npm ` ). This path is not included
156
+ (e.g., ` C:\Users\ilg\AppData\Roaming\npm ` ). In older releases,
157
+ this path was not included
143
158
in the system or user path.
144
159
145
160
``` txt
146
161
C:\>echo %Path%
147
162
```
148
163
149
- It must be manually added ** before** the current path:
164
+ If this is the case, it must be manually added ** before** the current path:
150
165
151
166
``` txt
152
167
C:\>set Path=%APPDATA%\npm;%Path%
@@ -179,6 +194,8 @@ After this, the new version of the program should be visible:
179
194
${frontMatter .npm_latest_version }
180
195
` } </CodeBlock >
181
196
197
+ <details >
198
+
182
199
<Heading as = " h2" >Git</Heading >
183
200
184
201
While not mandatory for using the xPack tools alone, it is recommended
@@ -493,6 +510,21 @@ sudo apt-get install --yes linux-headers-generic
493
510
494
511
</Tabs >
495
512
513
+ ## Install xpm
514
+
515
+ [ ` xpm ` ] ( https://xpack.github.io/xpm/ ) is also a portable
516
+ [ Node.js] ( https://nodejs.org/ ) command line application.
517
+
518
+ On macOS and GNU/Linux, if you followed the _ Quick instructions_ ,
519
+ it is already installed. Otherwise, to install it, follow the steps in the
520
+ [ xpm install] ( https://xpack.github.io/xpm/install/ ) page.
521
+
522
+ If you're confident and prefer a shortcut,
523
+ run the following command:
524
+
525
+ ``` sh
526
+ npm install -location=global xpm@latest
527
+ ```
496
528
497
529
## Cleanups (node/npm)
498
530
@@ -509,6 +541,11 @@ following two folders to install global packages:
509
541
- ` %APPDATA%\Roaming\npm `
510
542
- ` %APPDATA%\Local\npm-cache `
511
543
544
+ And ** xpm** uses the following two folders:
545
+
546
+ - ` %APPDATA%\Roaming\xPacks `
547
+ - ` %APPDATA%\Local\Caches\xPacks `
548
+
512
549
</TabItem >
513
550
514
551
<TabItem value = " macos" label = " macOS" >
@@ -519,6 +556,11 @@ and **npm** utilise only two folders:
519
556
- ` $HOME/.nvm `
520
557
- ` $HOME/.cache/node `
521
558
559
+ And ** xpm** uses the following two folders:
560
+
561
+ - ` ${HOME}/Library/xPacks `
562
+ - ` ${HOME}/Library/Caches/xPacks `
563
+
522
564
</TabItem >
523
565
524
566
<TabItem value = " linux" label = " GNU/Linux" >
@@ -529,25 +571,15 @@ and **npm** utilise only two folders:
529
571
- ` $HOME/.nvm `
530
572
- ` $HOME/.npm `
531
573
532
- </ TabItem >
574
+ And ** xpm ** uses the following two folders:
533
575
534
- </Tabs >
535
-
536
- ## Install xpm
537
-
538
- [ ` xpm ` ] ( https://xpack.github.io/xpm/ ) is also a portable
539
- [ Node.js] ( https://nodejs.org/ ) command line application.
576
+ - ` ${HOME}/.local/xPacks `
577
+ - ` ${HOME}/.cache/xPacks `
540
578
541
- On macOS and GNU/Linux, if you followed the _ Quick instructions_ ,
542
- it is already installed. Otherwise, to install it, follow the steps in the
543
- [ xpm install] ( https://xpack.github.io/xpm/install/ ) page.
579
+ </TabItem >
544
580
545
- If you're confident and prefer a shortcut,
546
- run the following command:
581
+ </Tabs >
547
582
548
- ``` sh
549
- npm install -location=global xpm@latest
550
- ```
551
583
552
584
## Miscellaneous
553
585
0 commit comments