     else
       @version = version
 
-    options ?= {}
-    @version = 'master' if @version is '*'
+    # The default version is `master`.
+    @version = 'master' if not @version or @version is '*'
     logging.info "Installing #{@repo}@#{@version}..."
 
+    @remote = 'https://raw.github.com'
     @slug = "#{@repo}@#{@version}"
-    @remote = options.remote ? 'https://raw.github.com'
-    @auth = options.auth
 
+    # Use `repo@version` to de-duplicate in-flight requests.
     if inFlight[@slug]
       @install = @emit.bind(@, 'end')
     inFlight[@slug] = true

#
# pkgmgr.coffee
#

fs = require 'fs-extra'
sysPath = require 'path'
logging = require './utils/logging'
project = require './project'
Emitter = require('events').EventEmitter
async = require 'async'
_ = require 'underscore'
request = require './utils/request'

# In-flight requests
inFlight = {}

# Package class
class Package extends Emitter
  constructor: (@repo, version, options) ->
    if _.isObject(version)
      @pkgInfo = version
      @version = @pkgInfo.version

      if err
        done(err)
      else
        try
          json = JSON.parse(content)
          done(null, json)
        catch e
          logging.fatal "Failed to fetch #{url}"
          done(e)

  processJSON: (err, json) =>
    if err
