Zhongde Liu

This is my personal "Clipboard" of web development stuff I come across

Leave a comment

npm, node-gyp error and Windows

I wanted to try out the Sails framework. On installation (npm install sails) however I just got this error and the installation was unsuccessful.

npm ERR! ws@0.4.32 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT

It is the same thing as in this closed issue on github. There was a reference to a buggy version of ws/socketIO. Googling some more you get a lot issues related to socketIO and Windows7 or this topic in general. For example:  https://github.com/websockets/ws/issues/240 or http://stackoverflow.com/questions/15200184/why-do-i-get-error-when-trying-to-install-socket-io-with-nmp

In fact as a windows(7) user you may stumbled upon these node-gyp error previously…. nody-gyp is used “for compiling native addon modules for Node.js”. Unfortunately the prerequisites on Windows are Python and Visual Studio!?. Including also several steps for a working setup… https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup.

I thought  “What the …”. I just wanted to try something out.

End of story: I used “–force” on the install command and it worked. But for how long and what actually happened or did not happen behind the installation curtain!? I hope node-gyp, or the related modules (ws) will get updates to fix these hurdles on windows machines…


Update: As of now Sails(0.11.0) and socketIO(1.3.5) are installing just fine on windows…

Leave a comment

Installing is nomally so easy….

…but not always. I tried to install die Kinect SDK and stumbled upon different problems – with just executing the .exe install file:

  1. Install process just brakes with no error message….
  2. ……Finding the setup-log
    • Hit “set TEMP” into the command shell prints your temp folder of your current user
    • Analysing the log points me to “Error 0x800b010e” — …great
  3. After some research on the web I disabled some security settings in advanced options tab of the internet options
  4. ….it is installing a bit longer – but still – error
  5. …. Analysing (again) the log reveals “Error”0x80096005” — great²
  6. Hey there is a magical command found in a post of one of microsofts forum which solves this problem!
    Make sure your machine has cached the certificate revocation list (CRL) for the timestamp countersignature.  You can force this to happen by running the following commands:
    certutil -URLCache -f http://crl.microsoft.com/pki/crl/products/MicrosoftTimeStampPCA.crl 
  7. Viola! – It is installed