         npm.commands.uninstall [plugins[index].packageName], (er, data) ->
           callback(index)
       @setState {removeStatus}
-  handleInstallComplete: (index) ->
+  handleInstallComplete: (index, er) ->
     installStatus = @state.installStatus
     installStatus[index] = 2
+    installStatus[index] = 0 if er
     @setState {installStatus}
   handleInstall: (name, index, callback) ->
     if !@props.disabled

          toUpdate.push plugin.packageName
      npm.load npmConfig, (err) ->
        npm.commands.update toUpdate, (er, data) ->
          callback()
      @setState
        updating: updating
        updatingAll: true

      installStatus[index] = 1
      npm.load npmConfig, (err) ->
        npm.commands.install [name], (er, data) ->
          callback(index, er)
      @setState {installStatus}
  solveUpdate: (updateData, isfirst) ->
    latest = @state.latest
