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

route报错 const fs = require('fs'); #5

Open
ghost opened this issue Nov 6, 2019 · 1 comment
Open

route报错 const fs = require('fs'); #5

ghost opened this issue Nov 6, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 6, 2019

morgan deprecated default format: use combined format app.js:17:9
/root/ant/web/addons/ant.install/route.js:4
const fs = require('fs');
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478: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 /root/ant/web/modules/route.js:66:9
at Array.forEach (native)
at module.exports (/root/ant/web/modules/route.js:65:20)
环境是Nodejs 0.12.9
Mongodb 2.6.7

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