Comments (3)
node 版本是 v7.6.0+ 吗?
from gracejs.
我的node版本v6.10.3;
knbdeMacBook-Pro:koa-grace knb$ npm run dev
> gracejs@2.0.10 dev /Users/knb/workspace/github/koa-grace
> nodemon bin/server.js
[nodemon] 1.11.0
[nodemon] reading config /Users/knb/workspace/github/koa-grace/nodemon.json
[nodemon] to restart at any time, enter `rs`
[nodemon] ignoring: /Users/knb/workspace/github/koa-grace/.git/**/* .nyc_output .sass-cache bower_components coverage /Users/knb/workspace/github/koa-grace/node_modules/**/* /Users/knb/workspace/github/koa-grace/.git/**/* node_modules/**/node_modules
[nodemon] watching: app/*/controller/**/* app/*/model/**/* app/*/mock/**/*
[nodemon] watching extensions: js,json
[nodemon] starting `node bin/server.js`
[nodemon] child pid: 6148
[nodemon] watching 342 files
/Users/knb/workspace/github/koa-grace/middleware/body/index.js:51
return async function body(ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at fs.readdirSync.forEach (/Users/knb/workspace/github/koa-grace/middleware/index.js:9:21)
at Array.forEach (native)
at Object.<anonymous> (/Users/knb/workspace/github/koa-grace/middleware/index.js:6:25)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
[nodemon] app crashed - waiting for file changes before starting...
运行环境readme 应该说明下,即使没测试哪些环境运行,至少将自己的环境贴出来,跑不起来;
from gracejs.
注意:请确保你的运行环境中Nodejs的版本至少是v7.6.0 (或者你也可以考虑支持 Nodejs v4.x+ 的koa-grace v1.x)
快速开始的第一行有注明
from gracejs.
Related Issues (20)
- 路由可以使用别的模式 HOT 1
- 多个post请求且有不同的form参数时,有好的解决方案吗? HOT 2
- Proxy-Post传XML参数时会被放进Form中。 HOT 1
- nunjucks 要添加个过滤器怎么加呢? HOT 1
- 模板引擎改为 nunjucks 出现找不到模板错误 HOT 1
- 建议添加 eslint, .editorconfig HOT 2
- proxy的500友好页怎么跳转
- controller 中如何某个引用的库 没有install 不报错,然后访问的时候404.有办法在编译的时候直接报错吗
- nunjucks 自定义过滤器 HOT 5
- 设置头字段中set-cookie为对应cookie 字段类型报错 HOT 1
- post支持xml吗 HOT 1
- proxy代理数据问题 HOT 1
- 数据库支持扩展 HOT 1
- `defaultCtrl.js` 里做鉴权时抛出`401`错误,无法进入default err handing! HOT 1
- 请问当页面输入URL地址时候如何把controller中的路由文件夹名字省略掉 HOT 2
- koa 新手求教
- 如何提高单点TPS, QPS HOT 5
- npm run dev 后 访问127.0.0.1:3000 报错 Cannot read property 'store' of undefined HOT 5
- session中间件报错,this.session是undefined HOT 2
- 运行start,页面返回Invalid hostname!
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 gracejs.