Once installed, your vcbuild.exe should be located somewhere in the subfolders of C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin (mine was in amd64).
Try this from cmd line as Administrator
optional part, if you need to use a proxy:
set HTTP_PROXY=http://login:password@your-proxy-host:your-proxy-port
set HTTPS_PROXY=http://login:password@your-proxy-host:your-proxy-port
run this:
npm install -g --production windows-build-tools
No need for Visual Studio. This has what you need.
References:
https://www.npmjs.com/package/windows-build-tools
https://github.com/felixrieseberg/windows-build-tools
I know it's a very old question, but is the first in my google search and after some time I got how to solve this.
find node on your windows with:
as @janaka-bandara suggested you can use the native where node
if you don't have it for some reason you can install which with node
$ npm install -g which
$ which node
after cd
into the directory, inside the directory cd
into node_modules\npm folder and finally:
$ npm install node-gyp@latest
here worked, the answer is from this site
It's mentioned in the Documentation clearly as below: https://github.com/nodejs/node-gyp#installation
Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).
npm install --global --production windows-build-tools
Look at the installation instructions for node-gyp - you can't just npm install node-gyp
. I see you've installed Visual C++, but there's more to it.
What version of windows do you have? If I knew that I might be able to tell you which part of the node-gyp instructions you didn't do, but check them out and you should be able to figure it out. I've gone through a bit of pain for this stuff too.
I tried the above suggested npm install --global --production windows-build-tools
but found that the installation was always hanging forever.
I managed to fix the problem by installing Node.js 8 instead of Node.js 10.
Just to add to the above answer, anyone finding an issue of the installers taking forever, I found my issue was python, I uninstalled both my versions 3 and versions 2.
The re-ran the command in PowerShell terminal as the admin and it installed almost straight away.
npm install --global --production windows-build-tools
PLEASE FOLLOW THE FLOW CORRECTLY WINDOWS 10x64
npm install -g node-gyp
npm install --global --production windows-build-tools
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With