Guest User

Untitled

a guest
Feb 16th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment