Could not proxy request /pusher/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED)

后端 未结 13 915
半阙折子戏
半阙折子戏 2020-12-09 09:48

I am trying to create a chat app using reactJS and pusher, i am getting this error-

Could not proxy request /pusher/auth from localhost:3000 to http

13条回答
  •  天涯浪人
    2020-12-09 10:03

    I think Server not working properly, you should run client and server concurrently for that add following procedures in package.json file

    1) Install concurrently

    npm install concurrently --save
    

    2) configure client and server

    "server": "nodemon server.js",
    "client": "npm start --prefix client"
    

    3) configure concurrently

    "dev": "concurrently "npm run server" "npm run client""
    

提交回复
热议问题