lps405
lps405
  • 发布:2019-02-28 14:20
  • 更新:2020-04-13 11:20
  • 阅读:3002

编辑代码后保存eslint-vue报错,

分类:HBuilderX

uniapp项目

[eslint-vue] 14:13:59.038 D:\HBuilderX\plugins\eslint-vue\node_modules\eslint\lib\cli-engine.js:616
[eslint-vue] 14:13:59.038 const { result, config } = processFile(fileInfo.filename, configHelper, options, this.linter);
[eslint-vue] 14:13:59.038 ^
[eslint-vue] 14:13:59.038 SyntaxError: Unexpected token {
[eslint-vue] 14:13:59.038 at exports.runInThisContext (vm.js:53:16)
[eslint-vue] 14:13:59.038 at Module._compile (module.js:373:25)
[eslint-vue] 14:13:59.038 at Object.Module._extensions..js (module.js:416:10)
[eslint-vue] 14:13:59.038 at Module.load (module.js:343:32)
[eslint-vue] 14:13:59.038 at Function.Module._load (module.js:300:12)
[eslint-vue] 14:13:59.038 at Module.require (module.js:353:17)
[eslint-vue] 14:13:59.038 at require (internal/module.js:12:17)
[eslint-vue] 14:13:59.038 at Object.<anonymous> (D:\HBuilderX\plugins\eslint-vue\node_modules\eslint\lib\cli.js:21:17)
[eslint-vue] 14:13:59.038 at Module._compile (module.js:409:26)
[eslint-vue] 14:13:59.038 at Object.Module._extensions..js (module.js:416:10)

提示[eslint-vue] 验证失败,请查看控制台

2019-02-28 14:20 负责人:无 分享
已邀请:

最佳回复

a***@163.com

a***@163.com

已经解决了是,node版本不对,升级一下就好了。

  • 1***@qq.com

    我下插件安装里边卸载在安装还是不行

    2019-07-11 10:04

小馨他爹

小馨他爹

同问,

zhoupu

zhoupu

同问,

a***@163.com

a***@163.com

同问,

a***@163.com

a***@163.com

解决了没有??

啾啾啾啾

啾啾啾啾 - 九九九

请问解决了吗?遇到同样的问题了

  • DCloud_HB_WDL

    打开命令行,进入eslint-vue插件目录,执行下npm install

    2019-12-13 10:45

  • 啾啾啾啾

    回复 DCloud_HB_WDL: 不行,报错了

    C:\Users\Administrator\Downloads\HBuilderX\plugins\eslint-vue>npm install

    npm WARN package.json eslint-vue@1.0.1-2019090219 No repository field.

    npm WARN package.json eslint-vue@1.0.1-2019090219 No license field.

    npm ERR! Windows_NT 6.1.7601

    npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\

    node_modules\npm\bin\npm-cli.js" "install"

    npm ERR! node v4.4.3

    npm ERR! npm v2.15.1

    npm ERR! code EPEERINVALID


    npm ERR! peerinvalid The package eslint@5.16.0 does not satisfy its siblings' pe

    erDependencies requirements!

    npm ERR! peerinvalid Peer eslint-config-standard@11.0.0 wants eslint@>=4.18.0

    npm ERR! peerinvalid Peer eslint-plugin-import@2.19.1 wants eslint@2.x - 6.x

    npm ERR! peerinvalid Peer eslint-plugin-node@6.0.1 wants eslint@>=3.1.0

    npm ERR! peerinvalid Peer eslint-plugin-standard@3.1.0 wants eslint@>=3.19.0

    npm ERR! peerinvalid Peer eslint-plugin-vue@4.7.1 wants eslint@^3.18.0 || ^4.0.0


    npm ERR! peerinvalid Peer vue-eslint-parser@2.0.3 wants eslint@>=3.9.0


    npm ERR! Please include the following file with any support request:

    npm ERR! C:\Users\Administrator\Downloads\HBuilderX\plugins\eslint-vue\npm-d

    ebug.log


    C:\Users\Administrator\Downloads\HBuilderX\plugins\eslint-vue>

    2019-12-13 15:13

该问题目前已经被锁定, 无法添加新回复