Microsoft JScript runtime error: Object expected Code 800A13F

前端 未结 2 1596
暖寄归人
暖寄归人 2021-01-20 13:59

I just started to learn and train about node js. I was already installing node js version 2.14.7 64bit. Then. I was writing a code to make basic server.

var          


        
2条回答
  •  无人共我
    2021-01-20 15:01

    It looks like you are double-clicking on the file, which by default will execute the file with Microsoft's JScript implementation. To execute the file under node.js, you will have to start your script at the command line with something like node test4.js (assuming you are in D:\node.js).

提交回复
热议问题