Skip to content

Commit ee8e1c1

Browse files
cclaussrvagg
authored andcommitted
doc(wiki): If permissions error, please try and then the command.
1 parent d314854 commit ee8e1c1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Updating-npm's-bundled-node-gyp.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,22 @@ We need to start by knowing your version of `npm`:
1616
npm --version
1717
```
1818

19-
## Linux, Mac OS X, Solaris, etc.
19+
## Linux, macOS, Solaris, etc.
2020

21-
Unix is easy. Just run the following command. Use `sudo` if necessary.
21+
Unix is easy. Just run the following command.
2222

2323
If your npm is version ___7___, do:
2424
```bash
25-
$ [sudo] npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest
25+
$ npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest
2626
```
2727

2828
Else if your npm is version ___less than 7___, do:
2929
```bash
30-
$ [sudo] npm explore npm/node_modules/npm-lifecycle -g -- npm install node-gyp@latest
30+
$ npm explore npm/node_modules/npm-lifecycle -g -- npm install node-gyp@latest
3131
```
3232

33+
If the command fails with a permissions error, please try `sudo` and then the command.
34+
3335
## Windows
3436

3537
Windows is a bit trickier, since `npm` might be installed to the "Program Files" directory, which needs admin privileges in order to

0 commit comments

Comments
 (0)