0

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?

2
  • 1
    npmjs.org/package/websocket states this must be Python 2.7 and not 3.x. Which version did you install? Commented Mar 17, 2013 at 13:56
  • visual-cpp-express 2010 and python 2.7 ...now it works, thank you Commented Mar 17, 2013 at 16:53

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

visual-cpp-express 2010, now it works! visualstudio 2008 did not... thank you, very much!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.