【问题标题】:no git found when installing react plugin for Atom为 Atom 安装 react 插件时找不到 git
【发布时间】:2017-07-30 12:08:12
【问题描述】:

我使用的是 Windows 10,但为 atom 安装 react jsx 插件失败。我已经安装了 git。但是错误说它找不到git。我什至去了系统变量并添加到路径

C:\Users\dove\AppData\Local\Programs\Git\bin

因为它安装了我的 git。可能是什么问题?

这是详细的错误

安装“react@0.16.2”失败。隐藏输出... 安装反应失败 因为没有找到 Git。

react包有无法安装的模块依赖 没有 Git。

您需要安装 Git 并将其添加到您的路径环境变量中 为了安装这个包。

您可以通过下载、安装和启动 GitHub 来安装 Git 对于 Windows:https://windows.github.com

安装 Git 后运行 apm -v 以查看检测到的版本。

【问题讨论】:

  • 为了清楚起见,您正在安装 Atom 包 react,对吗?为什么需要 Git?
  • 我也不知道我需要 git,但这就是它给出的错误。它说插件的一些组件需要git。并且没有找到 git
  • 如果您的 PATH 中有 Atom,请在终端中输入以下命令:$ apm install react
  • 在 cmd 中的 windows 上?

标签: reactjs atom-editor


【解决方案1】:

在终端或 Git Bash 中键入以下命令:

$ apm install react

$ apm install react@0.16.2

0.16.2 是截至 2017-08-02 的最新版本。

如果失败,您可以通过键入以下命令将 Git 配置为使用 git 协议而不是 http

$ git config --global url.git://github.com/.insteadOf https://github.com/

【讨论】:

    猜你喜欢
    • 2013-08-25
    • 1970-01-01
    • 2019-04-03
    • 2012-01-14
    • 1970-01-01
    • 2021-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多