Microsoft JScript runtime error: Object expected Code 800A13F

前端 未结 2 1594
暖寄归人
暖寄归人 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 14:53

    If you save your node.js file inside the "users" folder , then you can get this kind of errors.

    The best way to solve this is that you make a folder inside the D:\ like "D:\node" and then with the help of "cd" or "cd.." command in you cmd to navigate to the folder and run "node test4.js".

    Hope it solves your problem.

    0 讨论(0)
  • 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).

    0 讨论(0)
提交回复
热议问题