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

项目显示async connect (url, opts) Unexpected identifier错误 #444

Open
zhaoyao514 opened this issue May 20, 2018 · 0 comments
Open

Comments

@zhaoyao514
Copy link

项目完成后node index显示如下错误 mongodb已经配置好

PS E:\桌面文件\nodejs+monogdb\myblog> node index
E:\桌面文件\nodejs+monogdb\myblog\node_modules\mongolass\lib\index.js:31
async connect (url, opts) {
^^^^^^^
SyntaxError: Unexpected identifier
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 Object. (E:\桌面文件\nodejs+monogdb\myblog\lib\mongo.js:2:19)

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

1 participant