JasonGiedymin / Holobot

Early experiment of vm automation
Other
1 stars 0 forks source link

Using NVM recipe, install nodejs #26

Closed JasonGiedymin closed 11 years ago

JasonGiedymin commented 11 years ago

Using NVM recipe, install nodejs.

With the tools installed via cookbooks, we should execute a ruby script which will install things like nvm and any other stuff. This is useful because we are using vagrant to bootstrap a general environment. Something that we won't be doing in production (it will already be up) and we'll need something other than vagrant to install things.

Latest nodejs version should be specified on the nodejs.org site.

JasonGiedymin commented 11 years ago

Want to be able to specify nodejs version in vagrant file or other script.

Basically when the vm installs nvm we should call nvm right after like so:

nvm use 10.1.0

This will make that version of node the global version.

JasonGiedymin commented 11 years ago

I'm looking at this.

JasonGiedymin commented 11 years ago

Scrap this idea. It's not a good one because we should focus on being able to create and package a small subset of boxes that we test and guarantee to work.

[Choose your setup]
NodeJS v1
NodeJS v2
Scala v1
Scala v2
Any combination of NodeJS version X (from above) + Scala version Y (from above)

If we allow users to just blindly allow to specify any version we will be in a support situation that we won't be able to win. Simply because we cannot test every variation. NodeJS, GO, and Scala both live in release candidate and alpha land. The chance that people are using official builds is very slim (NodeJS is used in production by a ton of companies but it isn't out of alpha yet!!! The latest stable is v0.10.18, not even at 1.0 :-P ).