npm i express --save全局: npm install -g express-generator运行:express -e myservercd myservercnpm inpm start 把npm start总的node改成nodemon可以自动检测到变化,但是需要安装。