Gabo Esquivel Gabo Esquivel - 1 month ago 19
Node.js Question

run `nvm use` automatically everytime there's a .nvmrc file on the directory

do you how can I configure my shell so that

nvm use
run automatically everytime there's a .nvmrc file on the directory and use the latest version or a global config when there's no .nvmrc file ?

Answer

I just found out about Automatic Version Switching for Node.js https://github.com/wbyoung/avn, you can use that.

You can also follow this thread https://github.com/creationix/nvm/issues/110