Comments (6)
- 请分开跑前端和后端的命令。
- 请注意你的env里的port 8889是否被其他进程占用。
from vue-koa-demo.
➜ vue-koa-demo git:(master) ✗ npm run server
[email protected] server /Users/XNW/Documents/Vuejs_workspace/vue-koa-demo
nodemon -w app.js -w server server-entry.js
[nodemon] 1.12.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: app.js /Users/XNW/Documents/Vuejs_workspace/vue-koa-demo/server/**/*
[nodemon] starting node server-entry.js
Koa is listening in undefined
rs
[nodemon] starting node server-entry.js
Koa is listening in undefined
试过换端口,losf查端口占用,重启等都一样是报这个错,单跑npm run server 提示 Koa is listening in undefined
from vue-koa-demo.
请问你的.env
文件长啥样?
from vue-koa-demo.
文件 dev.env 内容是:
DB_USER=root
DB_PASSWORD=mysqlpwd
PORT=8887
Mac 10.13.4 系统
from vue-koa-demo.
。。。并不能叫做dev.env
必须叫做.env
。文件名改一下吧。然后把PORT改成8889就行了。
from vue-koa-demo.
嗯,正常跑起来了,感谢~~
from vue-koa-demo.
Related Issues (20)
- Docker support HOT 2
- 新年好,楼主请帮忙,这是es6的转义导致的吗? HOT 1
- bcrypt.compareSync is not a function
- ssr分支->reademe.md 对.env配置说明有误 HOT 1
- 单元测试里面有国际化i18n 报错 HOT 1
- 运行时报错 HOT 1
- 运行时遇到一些问题 HOT 2
- 作者大大,方便交流下nginx配置吗? HOT 1
- 关于开发环境下ssr的问题 HOT 2
- ssr index.html的问题 HOT 1
- 为什么不能使用import HOT 1
- 库主是用什么版本的linux系统?安装yarn add sequelize mysql HOT 5
- 想搭建远程调试,一直不成功 HOT 7
- 【单元测试】:全局方法的引入 HOT 5
- [单元测试] vue-router的跳转怎么验证? HOT 2
- 数据库连接报错 HOT 5
- server-entry.js 使用babel registry在生产环境是否会造成性能问题 HOT 1
- ssr webpack-hot-middleware error HOT 5
- can this framework handle image uploading and hosting? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-koa-demo.