-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvm says 'no .nvmrc file found' when the problem is that the version inside of said .nvmrc is not installed. #1769
Comments
Thanks, this message should definitely be improved. |
I've run into this a couple of times as well. It would have helped me if Also, this particular instance of the problem could be sidestepped by |
nvm-exec isn’t the primary use cases for nvm, so it makes sense to me that this hasn’t come up yet, but I’d accept a pr that improved the error message for nvm-exec as well. |
Ah, sorry, I meant
Sounds good! For the record, my use case for |
This comment was marked as off-topic.
This comment was marked as off-topic.
This has not been fixed yet.
expected: nvm-exec to complain that v10 is not installed |
@bf yes, the issue being open indeed means it has not been fixed yet :-) |
Hey, I tried to see if I could fix this one real quick. Knowing this is a big project and heavily relied on would be glad to hear if this could be improved enough to resolve this issue or if it is even in the right direction. |
@khs1337 nvm-exec isn't meant to be ran directly. nvm is a sourced shell script, and then you'd run |
CentOS 7, nvm latest version
nvm debug
output:nvm ls
output:nvm
? (e.g. install script in readme, Homebrew):wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
nvm says 'no .nvmrc file found' when the problem is that the version inside of said .nvmrc is not installed.
I have a systemd service that calls nvm like this.
/home/kenny/.nvm/nvm-exec nodemon ./src/index.js
the output was:
Mar 31 21:06:00 vm5 start.sh[3021]: No NODE_VERSION provided; no .nvmrc file found
the contents of the .nvmrc file are:
v9.7.0
The error disappeared after running
nvm install 9.7.0 --reinstall-packages-from=node
I got the thing to work but I want to inform you that the error message is wrong it should say that the version inside the
.nvmrc
is not installed, not that there is no.nvmrc
file.The text was updated successfully, but these errors were encountered: