 
 # Task - install packages
 task 'install', 'install packages', ->
+  project.setEnv 'development'
+
   pkgs = opts.arguments[1..]
-  config = project.clientConfig
   if pkgs.length > 0
     # install the packages
     for pkg in pkgs

    fs.writeFileSync(sysPath.join(project.clientDir, 'config.json'), JSON.stringify(config, null, 2))
  else
    # install all dependencies listed in config.json
    for repo, version of config.dependencies
      pkgmgr.install repo, version

# Task - update packages

      pkgmgr.install repo, version

    # save to config.json
    config = project.clientConfig
    config.dependencies ?= {}
    for pkg in pkgs
      [repo, version] = pkg.split('@')
