项目无法运行,报错如下,请问是什么原因呢?
limshuang opened this issue · 0 comments
F:\React-Express-Blog-Demo-master\node_modules_http-proxy@1.16.2@http-proxy\lib\http-proxy\index.js:119
throw err;
^
Error: connect ECONNREFUSED 127.0.0.1:3030
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react_express_blog@1.0.0 watch-client: cross-env NODE_ENV=development node ./server/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react_express_blog@1.0.0 watch-client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2017-12-09T13_01_36_981Z-debug.log
react_express_blog@1.0.0 start-dev-api F:\React-Express-Blog-Demo-master
nodemon --watch server/api server/api/index.js
[nodemon] 1.12.5
[nodemon] to restart at any time, enter rs
[nodemon] watching: F:\React-Express-Blog-Demo-master\server\api/**/*
[nodemon] starting node server/api/index.js
(node:21188) DeprecationWarning: open() is deprecated in mongoose >= 4.11.0, use openUri() instead, or set the useMongoClient option if using connect() or createConnection(). See http://mongoosejs.com/docs/con
nections.html#use-mongo-client
数据库连接成功
===> api server is running at 127.0.0.1:3030