npm一次性开启两个服务

npm一次性开启两个服务

  1. 安装concurrently github地址
  2. npm i concurrently -g全局安装
  3. 修改package.json中的scripts
    "scripts": {
        "start": "react-scripts start",
        "build": "react-scripts build",
        "test": "react-scripts test",
        "eject": "react-scripts eject",
        "dev": "nodemon server/index.js",
        "all": "concurrently \"npm start\" \"npm run dev\" "
    }
    

npm一次性开启两个服务_第1张图片

你可能感兴趣的:(其他)