2016-04-01 46 views
2

我正在嘗試爲GitHub的Atom編輯器安裝atom-typescript軟件包。當我按下安裝按鈕時,它顯示以下錯誤消息。將「[email protected]」安裝到GitHub的Atom編輯器失敗

Installing "[email protected]" failed. 

    gyp info it worked if it ends with ok 
    gyp info using [email protected] 
    gyp info using [email protected] | 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 

找不出什麼問題。

有沒有人遇到同樣的問題?

Image displaying the error

+0

這是一個全新的'atom-typescript'安裝,你正在使用哪個版本的Atom,以及你已經安裝了哪些其他軟件包(如果有的話)?我剛剛嘗試過,併成功安裝在最新的Beta版「Atom 1.7.0-beta4」中。 –

回答

0

您可以嘗試關閉原子的所有實例,然後發出以下命令在命令行安裝:

apm install atom-typescript 

如果這不是一個新的安裝,那麼你將要卸載先前的軟件包第一個:

apm uninstall atom-typescript 

如果您收到相同的錯誤消息,您可以檢查是否本機工具實際上是安裝從Atom/apm的角度來看:

apm install --check 

如果後者命令失敗,那麼您可以更新您的問題的任何細節。

1

,您可以在手動安裝,而不是

光盤~/.atom/packages 克隆從GitHub項目,

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

光盤

atom-typescript 

和運行

npm install 

重新啓動原子。

相關問題