File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,27 @@ First we need to find the location of `node`. If you don't already know the loca
26
26
$ where node
27
27
```
28
28
29
- Now ` cd ` to the directory that ` node.exe ` is contained in, and with ` node_modules\npm ` at the end. i.e.:
29
+ Now ` cd ` to the directory that ` node.exe ` is contained in i.e.:
30
30
``` bash
31
- $ cd " C:\Program Files\nodejs\node_modules\npm "
31
+ $ cd " C:\Program Files\nodejs"
32
32
```
33
33
34
- Now you can run :
34
+ Now we need to know your version of ` npm ` :
35
35
``` bash
36
- $ npm install node-gyp@latest
36
+ npm --version
37
+ ```
38
+
39
+ If your npm version is ___ 7 or greater___ , do:
40
+ ``` bash
41
+ cd node_modules\n pm\n ode_modules\@ npmcli\r un-script
37
42
```
38
43
39
- Now ` cd ` to the ` npm-lifecycle ` directory :
44
+ If your npm version is ___ less than 7 ___ , do :
40
45
``` bash
41
- $ cd node_modules\n pm-lifecycle
46
+ cd node_modules \n pm \ n ode_modules\n pm-lifecycle
42
47
```
43
48
44
- Now you can finally run (again) :
49
+ Finish by running :
45
50
``` bash
46
51
$ npm install node-gyp@latest
47
52
```
You can’t perform that action at this time.
0 commit comments