Monday, February 17, 2014

Changing your Amazon EBS NodeJS version

By default these days, Amazon's EBS defaults to nodeJS 8.26. Which works great until you add a package that requires a newer version and get a cryptic error message and have to figure it out! In my case I added Bcrypt and it required a newer version of nodeJS. Here is the error I got:

ERROR:
[Instance: i-f39ba2d3 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: Error occurred during build: Command hooks failed .

Clear what that is right?? Well no. So bcrypt requires a newer version. In the management console you can change the version to be the latest amazon supports. I found a news article saying they just rolled out 0.10.21 support, where the latest on the node site is 0.10.25. So just be aware the latest from the nodejs site may not be what amazon supports, they drift a little apart.

Here is how you change the version:

First go here:
Next update this:


No comments:

Post a Comment