node-gyp TroubleShooting in Windows

Allen Kim
Nov 26, 2021

1. Install Python3

node-gyp relis on Python. Thus install Python, https://phoenixnap.com/kb/how-to-install-python-3-windows

Then check if it is properly installed.

2. Install C++ Build Tool

node-gyp compiles C++ code. Thus, install Visual Studio Build Tools for C++ compiling.

After install is done, you can verify that this directory is created.

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools

Then run the following command to let npm know msvs_version

npm install -g npm
npm config set msvs_version 2022

--

--