错误:/c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh:第23行:cmd.exe:找不到命令 [英] Error: /c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh: line 23: cmd.exe: command not found

查看:121
本文介绍了错误:/c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh:第23行:cmd.exe:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 64位计算机,并尝试通过git bash打开Atom编辑器.以前,我已添加如下环境变量,

I'm using windows 64-bit machine and trying to open Atom editor through git bash. Previously I have added the environment variable as follows,

然后我在git bash中尝试了$ atom命令,并发生以下错误,

Then I have tried $ atomcommand in my git bash and following error occurs,

/c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh:第23行:cmd.exe:找不到命令

/c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh: line 23: cmd.exe: command not found

请,有人可以帮我吗?

PS:Atom版本为1.36.1

PS: Atom version is 1.36.1

推荐答案

atom/atom问题17034 :

您似乎已修改了$ PATH来删除Microsoft核心路径 ...,其中包括指定cmd.exe位置的路径.
如果您修复了问题,那么事情应该会重新开始.

It looks like you've modified your $PATH to remove the Microsoft core paths... including the one that specifies where cmd.exe is located.
If you fix that things should start working again.

尝试从CMD会话中启动Atom,在此键入:

Try launching Atom from a CMD session, where you would type:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

set PATH=C:\Users\USER\AppData\Local\atom\bin;%PATH%

(用您的Windows帐户名替换"USER")

(Replace 'USER' by your Windows account name)

从此处:键入bash进入bash会话,并检查命令atom是否启动了Atom.

From there: type bash to enter in bash session, and check that the command atom does launch Atom.

这篇关于错误:/c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh:第23行:cmd.exe:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆