Report this

What is the reason for this report?

Node.JS Set up errors

Posted on May 2, 2017

I followed the tutorial for setting up Node.JS. When setting up the ‘Hello World’ app I get the error message:

curl: (7) Failed to connect to localhost port 8080: Connection refused

I have even gone so far as to create a new droplet and start over. Twice.

I decided to go forward with my project anyway and see if I could figure it out as I went along, I am stuck here:

module.js:471 throw err; ^

Error: Cannot find module ‘websocket’ at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/root/poisontap/backend_server.js:4:43) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.