原子编辑器:无法生成命令“ansible-lint”



我正在尝试在Windows 10中为Atom编辑器使用Ansible Lint插件。不幸的是,我收到以下错误:

An unexpected error with ansible, ansible-lint, linter-ansible-linting, atom, linter, and/or your playbook, has occurred.
Failed to spawn command `ansible-lint`. Make sure `ansible-lint` is installed and on your PATH

你能告诉我,我应该在哪里包含路径吗?我应该包括 lib 目录还是 lint 的邮件?

据我所知,Ansible Lint for Atom 需要 Python 中的 ansible-lint 包。这个软件包,安装Ansible本身(通过pip),这在Windows上不起作用。所以据我所知,Ansible-Lint 无法在 Windows 上运行。它可能在Linux子系统中工作,但Atom将无法在其中工作。事实上,我也在寻找一个 Ansible linter 或 YML 语法检查器,而不必在机器上安装 ansible 本身 (Windows)

最新更新