 
     @requestPackage packageName, (error, pack) =>
       if error?
-        process.stdout.write '\u2717\n'.red
+        @logFailure()
         callback(error)
       else
         commands = []
         packageVersion ?= pack.releases.latest
         {tarball} = pack.versions[packageVersion]?.dist ? {}
         unless tarball
-          process.stdout.write '\u2717\n'.red
+          @logFailure()
           callback("Package version: #{packageVersion} not found")
           return
 

        commands.push (packagePath, callback) =>
          @installModule(options, pack, packagePath, callback)

        async.waterfall commands, (error) ->
          unless installGlobally
            if error?
              process.stdout.write '\u2717\n'.red
            else
              process.stdout.write '\u2713\n'.green
          callback(error)

  # Install all the package dependencies found in the package.json file.

            source = path.join(nodeModulesDirectory, child)
            destination = path.join(@atomPackagesDirectory, child)
            fs.cp(source, destination, forceDelete: true)
          @logSuccess()

        callback()
      else
        if installGlobally
          fs.removeSync(installDirectory)
          @logFailure()

        callback("#{stdout}\n#{stderr}")

