Npm “scripts”: “start” run express and open url

前端 未结 3 1459
感动是毒
感动是毒 2021-02-01 15:51

I have this start params in package.json

\"scripts\": {
    \"start\": \"node bin/www\"
  },

It is running my express app when I a

3条回答
  •  春和景丽
    2021-02-01 16:16

    You just need to use start in the right order!

    "start": "npm run dev & start http://localhost:8000",
    

    Bad

    "start": "start http://localhost:8000 & npm run dev",
    

    Good

提交回复
热议问题