Beginer at coffeescript. I installed coffee-script and socket.io by npm. But this simple code shows me an error:
try
  io = require('socket.io')
catch error
  alert(error)
it returns require is no defined.
Same problem with other modules (for example fs).
Using PyCharm
 
    