isaacs / nave

Virtual Environments for Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default to nave use IFF version of node is already installed.

export-mike opened this issue · comments

Hi,

I'm having a problem on my CI.

Default to nave use IFF (if and only if) version of node is already installed. Is there a reason why this isn't the default behaviour?

As my CI will need to do:

console input: nave install 0.10
output: "Already installed: 0.10.39"
console input: nave use 0.10

to ensure the version I want is in use i have to use 2 commands not one :( I'm probably missing something..

You can do this on one line nave install 0.10 && nave use 0.10 install will return successfully regardless of if it's installed. Also there doesn't seem to be any output in the latest version.

Why not just do "nave use 0.10", since that'll install it if it's not already there?