Error while trying to install websocket module in NodeJS via npm
I got the following error when I tried to install a module websocket
in NodeJS. I am trying to use Ubuntu 12.04.
ubuntu@domU-12-31-39-14-1A-A1:/var/www$ npm install websocket
npm http GET https://registry.npmjs.org/websocket
npm http 304 https://registry.npmjs.org/websocket
> websocket@1.0.8 install /var/www/node_modules/websocket
> node install.js
[websocket v1.0.8] Attempting to compile native extensions.
[websocket v1.0.8]
Native code compile failed!!
Please note that this module DOES NOT REQUIRE the native components
and will still work without them, though not quite as efficiently.
On Windows, native extensions require Visual Studio and Python.
On Unix, native extensions require Python, make and a C++ compiler.
Start npm with --websocket:verbose to show compilation output (if any).
websocket@1.0.8 node_modules/websocket
The command I used to install the module websocket
is npm install websocket
. Can someone please advise what is going wrong?
+3
source to share