diff --git a/lib/main.js b/lib/main.js
index <HASH>..<HASH> 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -62,11 +62,12 @@ function main () {
     childProcess.execSync(util.format('git clone . %s', versionDir))
     logger.debug('[%s] Source code cloned', version)
 
-    childProcess.execSync('npm install')
-    logger.debug('[%s] Installed dependencies', version)
-
     try {
-      childProcess.execSync('npm test')
+      const command = util.format(
+          'source %s/nvm.sh && nvm use %s && npm install && npm test',
+          process.env.NVM_DIR, version)
+      logger.debug('[%s] command: %s', version, command)
+      childProcess.execSync(command, {shell: '/bin/bash'})
       logger.debug('[%s] Test cases executed', version)
     } catch (error) {
       logger.error(
Execute each test run with a different node version