0

i try to follow this tutorial (http://www.radiusdesk.com/getting_started/install_ubuntu_node.js) and i stuck on the nodejs step.

I installed nodejs but theres a problem with the socket.io module.

Log -> http://pastebin.com/DK2XSSeM

I used sudo npm -g install socket.io@0.9.x to install../usr/local/lib/node_modules/socket.io exists..

OS: Raspian (raspberrypi)

Thanks :)

user3442940
  • 31
  • 1
  • 1
  • 5

1 Answers1

0

Socket.io is not a global node module. You need to install it locally in the project and require() it use it in the code.

npm i --S socket.io

Then,

let socket = require('socket'); // something like that
Shaikh Shahid
  • 1,185
  • 11
  • 13