Search code examples
node.jscloud9-idecloud9

Error running node in cloud9 IDE?


First i got the following error and i couldn't figure yet what is this about: what is wrong with DOCTYPE? any idea?


Solution

  • The problem is that you're trying to open an HTML file with Node.js.

    Node.js is supposed to run JavaScript code (typically stored in .js files) and it cannot parse your HTML file, which is why you're getting these errors.

    You could try executing the files called app.js or server.js with the following commands:

    node app.js
    

    or

    node server.js
    

    Also, it seems your project (or whatever it is you're working on) has a README.md file which could help to clarify where you're supposed to start.