     new BufferedNodeProcess({command, args, stdout, stderr, exit})
 
   getAvailable: (callback) ->
-    command = @apmCommand
     args = ['available', '--json']
     exit = (code, stdout, stderr) =>
       if code is 0

        error.stderr = stderr
        callback(error)

    @runCommand(command, args, exit)

  uninstall: (pack, callback) ->
    {name, theme} = pack
    atom.packages.deactivatePackage(name) if atom.packages.isPackageActive(name)

    command = @apmCommand
    args = ['uninstall', name]
    exit = (code, stdout, stderr) ->
      if code is 0

        error.stderr = stderr
        callback(error)

    @runCommand(args, exit)
