     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


plugin_json_path = path.join ROOT, 'assets', 'data', 'plugin.json'
mirror_json_path = path.join ROOT, 'assets', 'data', 'mirror.json'

theme_list =
  darkly:     'https://bootswatch.com/darkly/bootstrap.css'

  fs.ensureDirSync stage2_app

  # Check npm version
  npm_version = (yield runScriptReturnStdoutAsync npm_exec_path, ['--version']).trim()
  log "You are using npm v#{npm_version}"
  if semver.major(npm_version) == 2
    log "*** USING npm 2 TO BUILD poi IS PROHIBITED ***"
