1.终端窗口输入:npm init 2.终端输入:npm install 3.修改代码后重启服务:ctrl+c 启动服务:node 文件名.js 转载于:https://www.cnblogs.com/aiyamoer/p/10622103.html