boxen / puppet-nodejs

MIT License
15 stars 47 forks source link

No sign in docs of how to use nodeenv to switch between node versions #28

Closed atomless closed 10 years ago

atomless commented 10 years ago

I'm used to nvm and am confused here. Is it possible to install more than one node version globally and how would you switch between them?

atomless commented 10 years ago

Any tip on this added to the docs would be super helpful!

tatablack commented 10 years ago

You've probably guessed by now.. anyway, nodenv --help is a good starting point. If you want to set your default Node.js version to 0.10.21, for example, you would run:

nodenv global v0.10.21
ghost commented 10 years ago

Can we set this in the boxen config?

tatablack commented 10 years ago

You mean, setting the default version when you have more than one installed?

In that case, you can add (if you want 0.10 s default):

class { 'nodejs::global': version => 'v0.10' }

..to a manifest file in ./modules.

ghost commented 10 years ago

Thanks