           commands = []
           for child in fs.readdirSync(nodeModulesDirectory)
             source = path.join(nodeModulesDirectory, child)
-            destination = path.join(destination, child)
+            destination = path.join(@atomPackagesDirectory, child)
             do (source, destination) ->
               commands.push (callback) -> fs.cp(source, destination, callback)
 

      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
