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 listcauses 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.2andnvm install 4.6.0that updated my node versions list. Now, everything is fine! 😃Oh, duh.
$NVM_DIRis not the home dir. Der! hahaok, so - a system node (what version is that on, btw?
nvm use system && node --versionassuming that works); everything else looks fine; can youcd "$NVM_DIR" && ls -laand paste that output?What’s the full path to your
.nvmrc?If you explicitly
nvm install 0.10.whateverdoes it work?