Skip to content

Commit a95e82d

Browse files
cclausslukekarrys
authored andcommitted
docs: npm is currently v10 (#2970)
1 parent 27d717c commit a95e82d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/Updating-npm-bundled-node-gyp.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This means that while `node-gyp` doesn't get installed into your `$PATH` by defa
1414
attempt to `npm install` a native add-on.
1515

1616
Sometimes, you may need to update npm's internal node-gyp to a newer version than what is installed. A simple `npm install -g node-gyp`
17-
_won't_ do the trick since npm will still continue to use its internal copy over the global one.
17+
_won't_ do the trick since npm will continue to use its internal copy over the global one.
1818

1919
So instead:
2020

@@ -29,7 +29,7 @@ npm --version
2929

3030
Unix is easy. Just run the following command.
3131

32-
If your npm is version ___7 or 8___, do:
32+
If your npm is version ___7 or higher___, do:
3333
```bash
3434
$ npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest
3535
```
@@ -43,10 +43,9 @@ If the command fails with a permissions error, please try `sudo` and then the co
4343

4444
## Windows
4545

46-
Windows is a bit trickier, since `npm` might be installed to the "Program Files" directory, which needs admin privileges in order to
47-
modify on current Windows. Therefore, run the following commands __inside a `cmd.exe` started with "Run as Administrator"__:
46+
Windows is a bit trickier, since `npm` might be installed in the "Program Files" directory, which needs admin privileges to modify current Windows. Therefore, run the following commands __inside a `cmd.exe` started with "Run as Administrator"__:
4847

49-
First we need to find the location of `node`. If you don't already know the location that `node.exe` got installed to, then run:
48+
First, we need to find the location of `node`. If you don't already know the location that `node.exe` got installed to, then run:
5049
```bash
5150
$ where node
5251
```
@@ -56,7 +55,7 @@ Now `cd` to the directory that `node.exe` is contained in e.g.:
5655
$ cd "C:\Program Files\nodejs"
5756
```
5857

59-
If your npm version is ___7 or 8___, do:
58+
If your npm version is ___7 or higher___, do:
6059
```bash
6160
cd node_modules\npm\node_modules\@npmcli\run-script
6261
```

0 commit comments

Comments
 (0)