我用的是win7,下载了nodejs并且成功安装。但是测试js文件时总是提示错误

。这是为什么?

按2次ctrl+c退出当前的node环境,然后cd命令切换到hello.js所在的目录,然后直接 node hello.js即可追问

用cmd命令一样提示错误

温馨提示:答案为网友推荐,仅供参考
相似回答