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! email@example.com 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…