【问题标题】:Installing “atom-typescript@8.5.0” into GitHub's Atom Editor failed在 GitHub 的 Atom 编辑器中安装“atom-typescript@8.5.0”失败
【发布时间】:2016-04-01 15:35:57
【问题描述】:

我正在尝试为 GitHub 的 Atom 编辑器安装 atom-typescript 包。当我按下安装按钮时,它会显示以下错误消息。

Installing "atom-typescript@8.5.0" failed.

  gyp info it worked if it ends with ok
  gyp info using node-gyp@2.0.2
  gyp info using node@0.10.40 | win32 | ia32
  gyp http GET https://atom.io/download/atom-shell/v0.34.5/node-v0.34.5.tar.gz
  gyp http 200 https://atom.io/download/atom-shell/v0.34.5/node-v0.34.5.tar.gz
  gyp http GET https://atom.io/download/atom-shell/v0.34.5/SHASUM256.txt
  gyp http GET https://atom.io/download/atom-shell/v0.34.5/node.lib
  gyp http GET https://atom.io/download/atom-shell/v0.34.5/x64/node.lib
  gyp http 200 https://atom.io/download/atom-shell/v0.34.5/x64/node.lib
  gyp http 200 https://atom.io/download/atom-shell/v0.34.5/node.lib
  gyp warn install got an error, rolling back install

Compiler tools not found

Packages that depend on modules that contain C/C++ code will fail to install.

Read here for instructions on installing Python and Visual Studio

不知道是什么问题。

有人遇到过同样的问题吗?

【问题讨论】:

  • 这是atom-typescript 的全新安装,您使用的是哪个版本的Atom 以及您安装了哪些其他软件包(如果有)?我刚刚试了一下,成功安装在Atom 1.7.0-beta4,这是最新的Beta版。

标签: atom-editor


【解决方案1】:

您可以手动安装它

CD到~/.atom/packages 从github克隆项目,

git clone https://github.com/TypeStrong/atom-typescript

cd到

   atom-typescript

然后运行

npm install

重启原子。

【讨论】:

    【解决方案2】:

    您可以尝试从命令行安装,方法是关闭所有 Atom 实例,然后发出以下命令:

    apm install atom-typescript
    

    如果这不是全新安装,那么您需要先卸载以前的软件包:

    apm uninstall atom-typescript
    

    如果您收到相同的错误消息,您可以从 Atom / apm 的角度检查是否实际安装了本机工具:

    apm install --check
    

    如果后一个命令失败,那么您可以使用任何详细信息更新您的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-04
      • 2017-05-06
      • 1970-01-01
      • 2019-11-11
      • 2018-01-15
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      相关资源
      最近更新 更多