【发布时间】:2023-04-04 08:47:02
【问题描述】:
在 Sublime Text Editor 3.x 中编辑 javascript 文件时,出现错误:
Oops! Something went wrong! :(
ESLint: 6.0.1.
ESLint couldn't find the plugin "eslint-plugin-chai-expect".
(The package "eslint-plugin-chai-expect" was not found when loaded as a Node module from the directory "C:\workspace\flltools".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install eslint-plugin-chai-expect@latest --save-dev
The plugin "eslint-plugin-chai-expect" was referenced from the config file in "modules\scoring\.eslintrc.yml".
If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.
我尝试了多种我在网上找到的解决方案,包括删除全局 ESLint/将所有与 ESLint 相关的包移动到全局,更改 SublimeLinter.settings 文件。只有在通过 Sublime 运行 lint 时才会出现该问题。当我运行eslint 命令时,它运行良好。
如果有人知道为什么会发生这种情况,请帮助我!
谢谢
【问题讨论】:
标签: sublimetext eslint sublimelinter