     for installTarget of installTargets
       installAllStatus.push 1
       toInstall.push installTarget
-    npm.load {prefix: "#{PLUGIN_PATH}", registry: mirror[@state.mirror].server}, (err) ->
+    npm.load {prefix: "#{PLUGIN_PATH}", registry: mirror[@state.mirror].server, http_proxy: 'http://127.0.0.1:12450'}, (err) ->
       npm.commands.install toInstall, (er, data) ->
         callback()
     @setState

      checking: false
      isUpdateAvailable: isUpdateAvailable
  checkUpdate: (callback, isfirst) ->
    npm.load {prefix: "#{PLUGIN_PATH}", registry: mirror[@state.mirror].server}, (err) ->
      npm.config.set 'depth', 1
      npm.commands.outdated [], (er, data) ->
        callback(data, isfirst)

    if !@props.disabled
      installStatus = @state.installStatus
      installStatus[index] = 1
      npm.load {prefix: "#{PLUGIN_PATH}", registry: mirror[@state.mirror].server, http_proxy: 'http://127.0.0.1:12450'}, (err) ->
        npm.commands.install [name], (er, data) ->
          callback(index)
      @setState {installStatus}
