我正在尝试为 atom 安装 linter,但是在应用程序和 cmd 中我都得到:
INFO: Could not find files for the given pattern(s).
\Java\jre7\bin";C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Brackets\command;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\GtkSharp\2.12\bin;" was unexpected at this time.
老实说,我不知道那是什么意思,但我已经尝试寻找答案,但找不到。 “atom -v”返回版本 (1.10.0),“apm -v”返回上述版本,以及任何 apm 命令。 “哪里 apm” 返回
C:\Users\JM\AppData\Local\atom\bin\apm
C:\Users\JM\AppData\Local\atom\bin\apm.cmd
最佳答案
https://github.com/atom/atom/issues/12608#issuecomment-245024152 https://github.com/atom/apm/commit/fa84f2693b22630e5125dcea10004300d00cdd75
我找到了在 repo 中所做的编辑并编辑了我的 apm.cmd 文件,解决了问题!对于任何想知道的人,第 12 行已从 if defined apm_git_path set "Path=!apm_git_path!;%PATH%"
更改为 if defined apm_git_path set "Path=!apm_git_path!;!PATH!"
这应该会在未来的更新中自行修复。
关于windows - 无法在 Atom、app 或 cmd 中安装包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39282229/