键入node
,您处于 node 命令模式,您应该使用Ctrl + C
退出,您只需要在终端中使用node jsfile.js
运行您的 js 文件,而不是在 node 命令模式下运行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.