Node-gyp issues
When you are going to install bitcore or geth, you may encountered some challenges in setting it up on your local Windows 10 machine.
Here are the steps:
- Install Python 2.7.15 from https://www.python.org/downloads/. To validate installation type the following command:
C:\WINDOWS\system32>python
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
2. Install node-gyp
globally
npm install -g node-gyp
3. Install native Visual C++ compile which allows us to compile written in C++ addons for Node.js. From administrator elevated PowerShell run the command
npm install — g — production windows-build-tools
2. I’ve solved this using the following steps
npm install --global --production windows-build-tools
node-gyp configure --msvs_version=2015
npm config set python /path/to/executable/python2.7
npm install web3 --save