js2-mode下flycheck不起作用?

为什么我的flycheck不起作用呢? 打开php文件flycheck就没问题

flycheck-javascript-eslint-executable is a variable defined in `flycheck.el’. Its value is nil The default executable is “eslint”.

看看"eslint"在不在你的path里

怎么查看呢?我是新手!不太懂.希望大神指导下!!!:slightly_smiling_face:

你的flycheck是开了的,没其他配置的话默认会尝试eslint,剩下的问题只有能不能找到eslint的binary/executable

我的

 ~ which eslint
/usr/local/bin/eslint
 ~ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

所以eslint在path里,flycheck能找到它

我的好像也在.会不会是其他原因呢?

C-h vexec-path看看,按理说path有,这里也会有。

然后再看flycheck-enabled-checkers, flycheck-checkers。可以看看这个帖子找点灵感:

到这里能检查的差不多查完了吧。。。