请问下在学习《一起学 Node.js》的时候,到了注册这一步,mongoless模块的 query.js 报错, #报错信息如下: g:\myblog\node_modules\mongolass\lib\query.js:53 this[plugin.name] = (…args) => { ^^^
SyntaxError: Unexpected token … at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions…js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (g:\myblog\node_modules\mongolass\lib\model.js:7:15) at Module._compile (module.js:410:26) at Object.Module._extensions…js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (g:\myblog\node_modules\mongolass\lib\index.js:7:15) at Module._compile (module.js:410:26) 一开始编辑器不支持ES6语法,后来调整了设置,就报这种错。