Vue npm run serve starts on random port

前端 未结 3 1241
长发绾君心
长发绾君心 2021-02-01 06:15

I\'m trying to run Vue on port 8080, but can\'t get that to work. I just created a brand new project with vue create . and ran it with npm run serve, w

3条回答
  •  臣服心动
    2021-02-01 07:13

    You can temporarily rollback portfinder by placing

    "resolutions": {
      "@vue/cli-service/portfinder": "1.0.21"
    }
    

    in your package.json file and run yarn install afterwards.

提交回复
热议问题