node server.js抛出错误

时间:2017-11-21 18:36:24

标签: node.js gruntjs

运行节点server.js只会抛出这样的错误。 谁知道为什么?

/xxxxxx/server/node_modules/connect/node_modules/mime/index.js:3
const Mime = require('./Mime');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/xxxxxx/server/node_modules/connect/lib/middleware/static.js:21:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

0 个答案:

没有答案