npm install node-gyp error code example

Example 1: node-gyp error

how to fix this issue follow this step by step

1. open with run as powershell
2. npm i windows-build-tools -g
3. wait 5 minute, after 5 minute npm i node-gyp -g
4. enjoy successfully to install node-gyp

Example 2: gyp error npm install

npm audit fix --force

Example 3: node-gyp rebuild

# Open the terminal as an administrator
# Go to your project folder and run:
npm config set node_gyp
npm config set msvs_version 2017
npm i