title: node-gyp rebuild failed while installing "weak" module on windows 7 for phantomjs
body: <p>I am trying to install phantomjs-node module on a Windows 7 (64 bit) machine. There seems to be node-gyp rebuild error while installing "weak" module. </p>
  
  <p>I have followed the <a href="https://github.com/TooTallNate/node-gyp" rel="nofollow">node-gyp windows installation steps</a> and ensured I have python installed and its path set correctly.</p>
  
  <p>I have also visual c++ and other requirements needed for node-gyp. Sadly I couldn't get the node-gyp rebuild error fixed. </p>
  
  <p>I have the following installed</p>
  
  <ul>
  <li>node - 0.8.14(64 bit)</li>
  <li>python - 2.7.3(64 bit)</li>
  <li>Microsoft Visual C++ 2010 (64 bit, also installed 32bit just in case, since 64 bit didn't help)</li>
  <li>Visual Studio 2010 (Pro) and Visual Studio 2012 (express, both web and desktop)</li>
  <li>Windows SDK 7.1</li>
  </ul>
  
  <p>The error I keep getting while installing the <strong>weak</strong> module is:</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'weakref.vcxproj' is invalid.  Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project.</p>
  </blockquote>
  
  <p>I am stuck with the above issue, having tried all the links and had all the node-gyp requirements installed correctly. Help much appreciated.</p>