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

请教个问题 #12

Closed
weiki08 opened this issue Nov 15, 2016 · 2 comments
Closed

请教个问题 #12

weiki08 opened this issue Nov 15, 2016 · 2 comments

Comments

@weiki08
Copy link

weiki08 commented Nov 15, 2016

出现下面的错误是为什么?

/node_modules/mongoose-schema-extend/index.js:28
        return () => target.concat(that.callQueue);
                ^

SyntaxError: Unexpected token )
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Object.Module._extensions..js (module.js:448:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/ec2-user/iBlog2/models/db.js:3:14)
    at Module._compile (module.js:430:26)
    at Object.Module._extensions..js (module.js:448:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/ec2-user/iBlog2/models/category.js:1:72)
    at Module._compile (module.js:430:26)
@eshengsky
Copy link
Owner

启动时请加上参数--harmony-proxies
https://github.com/eshengsky/iBlog2#启动站点

@weiki08
Copy link
Author

weiki08 commented Nov 16, 2016

找到原因了,是node版本太低,不支持es6标准

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