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

前端 未结 3 1456
感动是毒
感动是毒 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:06

    As far as I know it's like writing a bash command:

    // Windows
    "start":"start http://localhost:8081 & node bin/www"
    
    // Mac
    "start":"open http://localhost:8081 && node bin/www"
    
    // Linux
    "start":"xdg-open http://localhost:8081 && node bin/www"
    

提交回复
热议问题