949838390@qq.com
949838390@qq.com
  • 发布:2020-03-30 16:19
  • 更新:2020-03-30 19:10
  • 阅读:40

保存代码出错

分类:HBuilderX

遇到了这样的错误,

[eslint-vue] 16:09:26.203 C:\HBuilderX\plugins\eslint-vue\node_modules\eslint\bin\eslint.js:16
[eslint-vue] 16:09:26.203 const useStdIn = (process.argv.indexOf("--stdin") > -1),
[eslint-vue] 16:09:26.203 ^^^^^
[eslint-vue] 16:09:26.203 SyntaxError: Use of const in strict mode.
[eslint-vue] 16:09:26.203 at exports.runInThisContext (vm.js:73:16)
[eslint-vue] 16:09:26.203 at Module._compile (module.js:443:25)
[eslint-vue] 16:09:26.203 at Object.Module._extensions..js (module.js:478:10)
[eslint-vue] 16:09:26.203 at Module.load (module.js:355:32)
[eslint-vue] 16:09:26.203 at Function.Module._load (module.js:310:12)
[eslint-vue] 16:09:26.203 at Function.Module.runMain (module.js:501:10)
[eslint-vue] 16:09:26.203 at startup (node.js:129:16)
[eslint-vue] 16:09:26.203 at node.js:814:3

请问一下怎么弄

2020-03-30 16:19 负责人:无 分享
已邀请:
DCloud_HB_WKP

DCloud_HB_WKP

HBuilderX什么版本?麻烦上传一下日志信息。通过菜单【帮助】-【查看运行日志】可以看到日志文件。

  • 949838390@qq.com (作者)

    已经解决了,我升级了一下电脑的nodejs就可以了

    2020-03-31 21:35

要回复问题请先登录注册