I just installed node.js + microsoft visual to be able to install the websocket, it installed fine:
C:\\Users\\Administrator>npm install websocket
npm http G
I´ve got same error here.. I follow these steps:
Execute cmd as Administrator (Right click cmd icon-> Run as Administrator) Then type in cmd:
c:\Node Instalation Dir\> npm install -g express
c:\Node Instalation Dir\> npm install websocket --force
Now u can run your script:
c:\Node Instalation Dir\> node script.js
I did in a test server.. try to dont use '--force' in production server ok?