jst*_*all 10 intellij-idea node.js phpstorm webstorm eslint
我正在尝试在PhpStorm中创建一个自定义文件监视器,它将在保存时自动修复ESLint错误.在Settings > Tools > File Watchers我创建了一个具有以下设置的新文件观察器:
Any All places /home/user/Projects/todo-app/eslint-autofix.sh/home/user/Projects/todo-appeslint-autofix.sh:
#!/usr/bin/env bash
./node_modules/.bin/eslint --fix
Run Code Online (Sandbox Code Playgroud)
然后我发出ESLint错误并按下Ctrl + S保存.弹出以下错误:
/home/user/Projects/todo-app/eslint-autofix.sh
/usr/bin/env: ‘node’: No such file or directory
Run Code Online (Sandbox Code Playgroud)
如何解决这个错误?
jst*_*all 22
根据这篇文章,设置应如下:
| 归档时间: |
|
| 查看次数: |
8920 次 |
| 最近记录: |