Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下为什么会报这个错,json-server也全局安装了 #12

Open
ljxyaly opened this issue Jul 12, 2019 · 2 comments
Open

Comments

@ljxyaly
Copy link

ljxyaly commented Jul 12, 2019

Request failed with status code 500

@ljxyaly
Copy link
Author

ljxyaly commented Jul 12, 2019

Could not proxy request /home?shop_id=&per-page=8&page=1 from localhost:8080 to http://127.0.0.1:3000.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

@cngkqy
Copy link

cngkqy commented Nov 27, 2019

//全局安装 json-server
npm install -g json-server
//启动mock后台服务
npm run mock
//启动网页服务
npm run serve

一定要按这个顺序执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants