wbyoung / avn

Automatic Version Switching for Node
MIT License
1.14k stars 54 forks source link

Not resolving the version #15

Closed tregusti closed 9 years ago

tregusti commented 9 years ago

Hi, I have an issue where avn can't load the corrent version of node even though it is installed.

This is how it looks for me:

I've tried with and without v prefix. And I know that has worked fine before. Also, just before creating the test here, I reinstalled avn and avn-nvm.

Any ideas what I should try?

wbyoung commented 9 years ago

Can you include the output of _avn explain -v . please?

tregusti commented 9 years ago

Sure:

avn could not activate node 0.10.33
error: no plugin passed predicate
  avn-nvm: Invalid Version: iojs-v1.4.3

I'm not using iojs here, so I don't understand the relevance of the error.

EDIT: I did nvm uninstall iojs-v1.4.3 if that somehow affected, but no change in behaviour.

EDIT2: After that I did the explain thing again and got:

avn could not activate node 0.10.33
error: no plugin passed predicate
  avn-nvm: Invalid Version: system
wbyoung commented 9 years ago

Try updating:

npm i -g avn avn-nvm
avn setup

If that doesn't work, can you update to master & do another explain:

rm -r ~/.avn/plugins/avn-nvm
npm i -g wbyoung/avn-nvm
avn setup

Also, can you provide the output to nvm list if things don't work.

tregusti commented 9 years ago

Ok, sorry for taking you time. My bad. I was testing back and forth with different versions of node. And of course I had an different version of avn installed in the different versions of node I was testing in. I updated in all versions and now it works just fine...

Again. sorry. Close at will.

wbyoung commented 9 years ago

No worries. Glad you got it sorted out. If you can think of any way avn could have helped discover the cause of this error, feel free to open a new issue with suggestions on error output (or a pull request).