schultyy / avm

Installs Ruby and node.js on your machine
11 stars 4 forks source link

Make it easier to switch versions for different projects #63

Closed schultyy closed 8 years ago

schultyy commented 8 years ago

As a user I have multiple projects running on different node.js versions. I want avm to be able to pick the right version for me automatically. Automatically is meant in the sense that it does that after running a command, not automatically as in "When I cd into a directory, pick the right version".

$ avm autoselect
> Reading package.json
> package.json mandates to use node.js 5.0.0
> Picking 5.0.0

When the used version is not installed, it should print the following warning:

$ avm autoselect
> Reading package.json
> package.json mandates to use node.js 5.0.0
> 5.0.0 is not installed right now
> Run avm install 5.0.0 to install it and then try again