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

API : http://127.0.0.1:5000/api ----> net::ERR_CONNECTION_REFUSED #11

Open
serendipty-yu opened this issue Feb 15, 2017 · 3 comments
Open

Comments

@serendipty-yu
Copy link

这个API 是不是有问题,const apiHost = 'http://127.0.0.1:5000/api' ,反正是报错的,是我打开的方式不对,还是要添加什么?
image

@Brooooooklyn
Copy link
Owner

尝试一下
npm run compile_serve && npm start

@deot
Copy link

deot commented Mar 1, 2017

@Brooooooklyn 好像有点问题;

npm run compile_serve报错,只能使用npm run dev了;

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "compile_serve"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE

tsc ./server/index.ts ./server/global.d.ts -m commonjs --outDir lib --target ES2015 --experimentalDecorators --moduleResolution node --noImplicitAny --noImplicitThis --noImplicitReturns --noUnusedParameters --suppressImplicitAnyIndexErrors

@Brooooooklyn
Copy link
Owner

单独运行 tsc ./server/index.ts ./server/global.d.ts -m commonjs --outDir lib --target ES2015 --experimentalDecorators --moduleResolution node --noImplicitAny --noImplicitThis --noImplicitReturns --noUnusedParameters --suppressImplicitAnyIndexErrors 会报错吗

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