nvm: N/A: version "N/A" is not yet installed.
Continuing from #262
I’ve having a helluva time getting this to work with Jenkins running Phing, which uses
sh
(so it doesn’t load bash_profile). Manually adding the. ~/.nvm/nvm.sh
(orbash ~/.nvm/nvm.sh
) causes it to complain:N/A: version "N/A" is not yet installed.
Evennvm list
causes this error.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 25 (11 by maintainers)
Commits related to this issue
- when using .nvmrc, $2 is undefined/empty Issue #1201 — committed to robbwagoner/nvm by robbwagoner 8 years ago
I had this issue, for me it was caused by me deleting node versions provided by NVM without using NVM. I had custom aliases left behind that referenced the versions that I’d deleted. Removing those stale aliases stopped the error from showing up for me.
ah, got it! I installed without nvm: https://github.com/nodesource/distributions#installation-instructions, make sense to be displayed as non-nvm-managed node.
In that list, I had two versions with “N/A” displayed, so I used the command
nvm install 4.2.2
andnvm install 4.6.0
that updated my node versions list. Now, everything is fine! 😃Oh, duh.
$NVM_DIR
is not the home dir. Der! hahaok, so - a system node (what version is that on, btw?
nvm use system && node --version
assuming that works); everything else looks fine; can youcd "$NVM_DIR" && ls -la
and paste that output?What’s the full path to your
.nvmrc
?If you explicitly
nvm install 0.10.whatever
does it work?