     Promise.resolve
       log: "Unsupported platform #{platform}."
 
-installPluginsTo = async (plugin_names, install_root, tarball_root, server) ->
-  console.log "tarball_root"+tarball_root
+installPluginsTo = async (plugin_names, install_root, tarball_root) ->
   fs.removeSync install_root
   fs.ensureDirSync install_root
   fs.removeSync tarball_root
   fs.ensureDirSync tarball_root
 
   # Install plugins
-  yield npmInstallAsync install_root, ['--registry', server].concat(plugin_names)
+  yield npmInstallAsync install_root, ['--production', '--prefix', '.'].concat(plugin_names)
 
   plugins_dir = (for name in plugin_names
     plugin_dir = path.join install_root, 'node_modules', name

  # Can't use require('npm') module b/c we kept npm2 in node_modules for plugins
  log "Installing npm for #{tgt_dir}"
  fs.ensureDirSync tgt_dir
  yield runScriptAsync npm_exec_path, ['install'].concat(args),
    cwd: tgt_dir
  log "Finished installing npm for #{tgt_dir}"


  release_dir = path.join build_root, release_dir_name

  packages = fs.readJsonSync plugin_json_path

  plugin_names = (n for n of packages)

  install_root = path.join building_root, 'poiplugins_install'
  gzip_root = path.join building_root, 'poiplugins'
  yield installPluginsTo plugin_names, install_root, gzip_root

  d = new Date()
  str_date = "#{d.getUTCFullYear()}-#{d.getUTCMonth()+1}-#{d.getUTCDate()}"
