tasks/node_version.js
function (packages) {
      var thisPackage;

      if (packages.length) {
        thisPackage = packages.pop();

        var command = nvmUse + ' && npm ls -g ' + thisPackage;

        childProcess.exec(command, cmdOpts,function(err, stdout, stderr) {
          if (err) { throw err ;}

          if (stdout.indexOf('â”€ (empty)') !== -1) {
            npmInstall(thisPackage, function() {
              checkPackages(packages);
            });
          } else {
            checkPackages(packages);
          }
        });

      } else {
        done();
      }
    }
function (packages) {
      var thisPackage;

      if (packages.length) {
        thisPackage = packages.pop();

        var command = nvmUse + ' && npm ls -g ' + thisPackage;

        childProcess.exec(command, cmdOpts,function(err, stdout, stderr) {
          if (err) { throw err ;}

          if (stdout.indexOf('â”€ (empty)') !== -1) {
            npmInstall(thisPackage, function() {
              checkPackages(packages);
            });
          } else {
            checkPackages(packages);
          }
        });

      } else {
        done();
      }
    }
Check for globally required packages