简体   繁体   English

git-lfs 命令未找到 webstorm

[英]git-lfs command not found webstorm

I use WebStorm and after adding git-lfs I started to get this error我使用 WebStorm 并在添加 git-lfs 后开始出现此错误在此处输入图像描述

Error updating changes: git-lfs filter-process: git-lfs: command not found the remote end hung up unexpectedly更新更改时出错:git-lfs filter-process: git-lfs: command not found the remote end up expectedly

It prevents git updates.它会阻止 git 次更新。 Lfs is working fine in every terminal. Lfs 在每个终端都运行良好。

Looks like git-lfs is not on your $PATH when running the IDE from Finder, etc.从 Finder 等运行 IDE 时,看起来 git-lfs 不在你的 $PATH 上。

On MacOSX the environment variables differ between GUI applications and within the terminal.在 MacOSX 上,GUI 应用程序和终端内的环境变量不同。 Terminal environment is only available to applications started from terminal.终端环境仅适用于从终端启动的应用程序。 To solve this problem, WebStorm tries to load terminal environment by executing the following command on startup:为了解决这个问题,WebStorm 尝试通过在启动时执行以下命令来加载终端环境:

-l -i -c '/Applications/webstorm.app/bin/printenv.py' -l -i -c '/Applications/webstorm.app/bin/printenv.py'

Seems this command can't retrieve all needed stuff in your case - thus the issue.似乎此命令无法在您的情况下检索所有需要的东西 - 因此是问题所在。

Some links you may find useful: http://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks , http://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications.您可能会发现一些有用的链接: http: //apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks,http://apple.stackexchange.com/questions /51677/how-to-set-path-for-finder-launched-applications。 . . The problem is that the way to define system-wide environment variables on Mac changes from one version to another (even minor system updates may break your environment)问题是在 Mac 上定义系统范围环境变量的方式从一个版本更改为另一个版本(即使是较小的系统更新也可能破坏您的环境)

I had the same problem with IntelliJ.我对 IntelliJ 也有同样的问题。 In my case, I could not solve my problem via the confirmed answer.就我而言,我无法通过确认的答案解决我的问题。

However, I have no error opening the IDE from the terminal但是,我从终端打开 IDE没有错误

https://stackoverflow.com/a/7836740/3202266 https://stackoverflow.com/a/7836740/3202266

https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM