SHARE
TWEET

Untitled

a guest Feb 16th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const http = require('http');
  2.  
  3. const server = http.createServer();
  4.  
  5. server.on('connection',(socket) => {
  6.     console.log('new connection..');
  7. } );
  8.  
  9. server.listen(3000);
  10.  
  11. console.log('Listening on port 3000..');
  12.    
  13. module.js:550
  14.     throw err;
  15.     ^
  16.  
  17. Error: Cannot find module '/home/nolo/Programming_W_Area/nodejs/second_app/app.js'
  18.     at Function.Module._resolveFilename (module.js:548:15)
  19.     at Function.Module._load (module.js:475:25)
  20.     at Function.Module.runMain (module.js:694:10)
  21.     at startup (bootstrap_node.js:204:16)
  22.     at bootstrap_node.js:625:3
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top