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

windows系统下,yarn start / yarn doc 报错 #9

Closed
gracelinmumu opened this issue Jun 20, 2018 · 2 comments
Closed

windows系统下,yarn start / yarn doc 报错 #9

gracelinmumu opened this issue Jun 20, 2018 · 2 comments

Comments

@gracelinmumu
Copy link

gracelinmumu commented Jun 20, 2018

windows系统下,yarn start / yarn doc 报错,Linux mac正常
Error occured while trying to proxy to: localhost:9090/

webpack-dev-server -d --quiet --port 9090 & http-server example -c-1 -p 9091 (node:56736) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 parseQuery() will be replaced with getOptions() in the next major version of loader-utils. [HPM] Error occurred while trying to proxy request / from localhost:9090 to http://localhost:9091 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors) [HPM] Error occurred while trying to proxy request /favicon.ico from localhost:9090 to http://localhost:9091 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

Uploading 1529477597(1).jpg…

@akira-cn
Copy link
Contributor

我看报错信息有可能是http-server不支持windows?你试试看yarn global add http-server然后http-server example -c-1 -p 9091能不能跑起http服务

@gracelinmumu
Copy link
Author

嗯,先http-server example -c-1 -p 9091启服务,再yarn start OK

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