diff --git a/.gitignore b/.gitignore
index 49b3b8a..718a0f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 tests/.urchin.log
+.nvm
 previous_version
diff --git a/tests/common.sh b/tests/common.sh
index 70c8f73..d57621d 100644
--- a/tests/common.sh
+++ b/tests/common.sh
@@ -1,5 +1,6 @@
 export test_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
 export repo_dir="$test_dir/.."
+export NVM_DIR="$repo_dir/.nvm"
 
 die () {
   echo $@