search

Home  >  Q&A  >  body text

Executing hello.js on the server side results in an error

Follow the explanation step by step, and then execute node hello.js on the server and an error will be reported ---

module.js: 471

phpcn_u8119phpcn_u81192761 days ago1524

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-07-09 22:13:30

    <script>
    console.log("hello node.js");
    </script>

    Excuse me, are you outputting to the console?

    reply
    0
  • phpcn_u8119

    I found the problem. When downloading the installation package, there was a breakpoint and the entire package was not downloaded. It was fine after re-downloading. Thanks

    phpcn_u8119 · 2017-07-09 23:50:38
  • Cancelreply