     @addBuildEnvVars(env)
     installOptions = {env}
     installOptions.streaming = true if @verbose
-    installOptions.cwd = modulePath if options.installInPlace
 
     installGlobally = options.installGlobally ? true
-    if options.installInPlace
-      installGlobally = false
 
     if installGlobally
       installDirectory = temp.mkdirSync('apm-install-dir-')

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

  installModule: (options, pack, modulePath, destination, callback) ->
    installArgs = ['--globalconfig', config.getGlobalConfigPath(), '--userconfig', config.getUserConfigPath(), 'install']
    installArgs.push(modulePath)
    installArgs.push("--target=#{@electronVersion}")
    installArgs.push("--arch=#{config.getElectronArch()}")
    installArgs.push('--silent') if options.argv.silent
    installArgs.push('--quiet') if options.argv.quiet
    installArgs.push('--production') if options.argv.production or options.installInPlace

    if vsArgs = @getVisualStudioFlags()
      installArgs.push(vsArgs)

          return callback(error) if error
          pack =
            name: gitPackageInfo.project
            # TODO: install modules
      else if name is '.'
        @installDependencies(options, callback)
      else # is registered package
