Node-gyp issues

胡家維 Hu Kenneth
Singapore Blockchain-Dapps
1 min readMar 22, 2019

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:

  1. 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

Source : https://github.com/ethereum/web3.js/issues/1066

--

--

胡家維 Hu Kenneth
Singapore Blockchain-Dapps

撰寫任何事情,O型水瓶混魔羯,咖啡愛好者,Full stack/blockchain Web3 developer,Founder of Blockchain&Dapps meetup ,Udemy teacher。 My Linktree: https://linktr.ee/kennethhutw