Skip to content

Commit

Permalink
Solution for gyp ERR! configure error for Windows OS (fossasia#1529)
Browse files Browse the repository at this point in the history
Windows users get this "gyp ERR! configure error" error while installing dependencies via npm.
  • Loading branch information
NischalJakhar authored and mariobehling committed Nov 18, 2017
1 parent b63e166 commit 7783e45
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/INSTALLATION_LOCAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,16 @@ Note : If you are running the app behind a proxy, set the proxy option in config
| Node.js | | v4.0 (or above) |
| Browser | Firefox/Chrome/Safari | 21+/11+/9+

Note: Computers running on Windows OS may encounter problems when installing the Webapp Generator on local machines. As Windows does not come bundled with a C++ compiler, which is needed in NodeJS, the command prompt may throw up a error which states that `node-gyp rebuild` fails on yor system. Hence it is advised a further prerequisite (for Windows users) is to download Visual Studio Community 2015 which contains a C++ compiler (link is https://www.visualstudio.com/downloads/)
Note: Computers running on **Windows OS** may encounter problems when installing the Webapp Generator on local machines. As Windows does not come bundled with a C++ compiler, which is needed in NodeJS, the command prompt may throw up a error which states that `node-gyp rebuild` fails on your system. Hence it is advised a further prerequisite (for Windows users) is to download Visual Studio Community 2015 which contains a C++ compiler (link is https://www.visualstudio.com/downloads/).

Note: If you are using **Windows OS** and getting errors like `gyp ERR! configure error` or `gyp ERR! stack Error: Can't find Python executable "python"` then you can now install all node-gyp dependencies with these commands:
(Run As Admin in Windows PowerShell)

```shell
npm install --global --production windows-build-tools
```
and then install the package
```shell
npm install --global node-gyp
```

0 comments on commit 7783e45

Please sign in to comment.