I have successfully installed Node.js, now I want to install the websocket module found here: https://github.com/Worlize/WebSocket-Node
From the root user, I have run the following command:
npm install websocket
The error thrown is:
[websocket v1.0.7]
Native code compile failed!!
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).
What commands should I issue to install this websocket module and its requirements?
Edit:
When I run sudo apt-get install gcc make
I get this message:
Reading package lists… Done
Building dependency tree
Reading state information… Done
gcc is already the newest version.
gcc set to manually installed.
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
And the same error when trying to install WebSocket.
Make sure that you have installed python, make and gcc.
Python should be already installed by default.
You can install gcc and make as root with command: