title: install node-gyp and Opencv On Windows 8
body: <p>I am trying to Install the OpenCV and use it on Windows 8 so am following these steps : </p>
  
  <p><strong>Installing Python for Windows</strong></p>
  
  <p>Python is necessary for building the modules. Go to <a href="http://www.python.org/getit/" rel="nofollow noreferrer">http://www.python.org/getit/</a> and download the latest version, currently "Python 2.7.3 Windows Installer" (Windows binary -- does not include source), install it. Add Python directory (e.g "C:\Program Files\Python") to the PATH environment variale in Windows.</p>
  
  <p><strong>Installing Microsoft Visual C++ 2010 Express</strong></p>
  
  <p>We will need the MSBuild system(which is built in VC++ 2010 Express) to build cairo lib to native code. Get VC++2010 Express from <a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express" rel="nofollow noreferrer">http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express</a> and install it.</p>
  
  <p><strong>Installing cairo library</strong></p>
  
  <p>You will need the cairo library which is bundled in GTK. Download the GTK all-in-one bundle for Win32 or Win64 (these instructions used that zip). Unzip the contents in C:\GTK (if you want to change this you must modify the binding.gyp file to reflect your changes), and add C:\GTK\bin to the PATH environment variable in Windows, it's necessary for node-canvas runtime to load those libs. If you get linker errors you've most likely picked the wrong bundle.</p>
  
  <p><strong>Installing node-gyp</strong></p>
  
  <p>In order to install node-gyp you will need node package manager (npm). To check if you have it installed simply type npm in a console and let the os find it for you. If you don't have it, then start a new command prompt in the NODE_LOCATION\deps\npm folder and install it by posting the following command:</p>
  
  <pre><code>node cli.js install npm -gf
  </code></pre>
  
  <p>After that, update npm to the latest version, required for node-gyp by posting the command:</p>
  
  <pre><code>npm update -g npm
  </code></pre>
  
  <p>When you have npm up and running you may install the node-gyp build system by giving the command:</p>
  
  <pre><code>npm install -g node-gyp
  </code></pre>
  
  <p>You should now be able to type node-gyp in your command prompt and have node-gyp's help screen displayed.</p>
  
  <p><strong>Build instructions</strong></p>
  
  <p>In the root of the node-canvas module you may use node-gyp to build the native module:</p>
  
  <pre><code>node-gyp configure build
  </code></pre>
  
  <p>But Once i reach the last step i keep getting the following error is the picture attached : </p>
  
  <p><img src="https://i.stack.imgur.com/IhanE.png" alt="Error In CMD"></p>