node js websocket requires c++

I want to install:

npm install websocket

and I get the message:

Native code compile failed!!
On Windoes, native extensions require Visual Studio and Python

Then I installed Visual Studio 8 and Python, but I still get the message. How can Visual Studio compile the code?

Are you installing correct versions of them. From the websocket npm page :

Note for Windows Users

Because there is a small C++ component used for validating UTF-8 data, you will need to install a few other software packages in addition to Node to be able to build this module:

Software to be installed are visual-cpp-express 2010 and python 2.7