To have a specific node version used ped project add the following to you ~/.profile and create a .nvmrc file with the node version at the root of the project.
enter_directory() {
if [[ $PWD == $PREV_PWD ]]; then
return
fi
PREV_PWD=$PWD
[[ -f ".nvmrc" ]] && nvm use
}
export PROMPT_COMMAND=enter_directory