Skip to content


Subversion checkout URL

You can clone with
Download ZIP


When trying to use a version not installed the return code isn't 1 #190

joshk opened this Issue · 3 comments

2 participants



First off, HUGE thanks for nvm, it has helped Travis support the Node community and has been a life saver.

I was wondering if you might be able to add a small feature for us. Currently when a user tries to test against a Node version not installed an error message is displayed, but the exit code is still 0 meaning Travis doesn't know if an error occurred or not.

Could you add the feature that if nvm use fails due to the version selected not being installed that nvm returns 1?

Huge thanks for the awesome tool,



Sure, send me a pull request.


I'm on windows at the moment, so I can't test it. But I think all that's needed is to change to return the exit value you want.

@trynity trynity referenced this issue from a commit in trynity/nvm
@koenpunt koenpunt Add exit code, fix #190 1aa2820
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.