windows - 无法在 Atom、app 或 cmd 中安装包

标签 windows cmd atom-editor

我正在尝试为 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/

相关文章:

c - 具有多个参数的 shellexecuteEx

windows - 使用 cmd.exe 以 UTF-8 编码保存文本文件

batch-file - Windows 脚本 : What and How to do this? 批处理文件或其他?

C#通过进程通过cmd调用带有错误重定向和exe的批处理

Node.js - 子进程抛出错误,但在 OS X 下可以在终端中执行命令

windows - 带注释的标签不适用于 64 位 Windows 命令控制台

c++ - 有符号整数溢出、内在函数和未定义行为

windows - 从 cmd.exe 设置持久环境变量

css - Atom 编辑器中的平滑插入符动画

javascript - Atom 编辑器中 JavaScript 库的代码完成