Difference between nodejs v0.12 and v5.x distributions

I’m looking to install nodejs via Dockerfile to a debian based container. I’m a little confused about the different distributions out there. I’ve come to the conclusion that I want the latest STABLE distribution.

Now, in nodesource/distributions#deb there are four different distributions (v0.10, v0.12, v4.x, v5.x). As far as I understand, I need v5.x (by reading this blog post, among other random stuff I googled). But everywhere I look for, people recommend to install v0.12 (which also is the latest stable, or LTS, I’m not sure) even though in the nodejs.com official site distributions the release is as of this time v5.0.0.

  • AWS ECS Docker - nginx: [emerg] host not found in upstream
  • Deploying a .NET Core Web API using Docker on Elastic Beanstalk
  • Docker push to artifactory gives a 403
  • error while loadingDocker: shared libraries: libsystemd-journal.so.0: cannot open shared object file: No such file or directory
  • Using docker-compose (formerly fig) to link a cron image
  • Can't get network statistics, Docker Remote API v1.22
  • So, I’ve got 2 possible ways of installing, any help (please elaborate a little bit, maybe this is a dumb question but it is kind of confusing to me)

    curl -sL https://deb.nodesource.com/setup_5.x | bash -
    apt-get install -y nodejs
    

    or

    curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
    sudo apt-get install -y nodejs
    

  • kube-dns can not resolve 'kubernetes.default.svc.cluster.local'
  • how to use --since option with docker logs command
  • How to dockerize web application that will be customized?
  • How to yank to host clipboard from inside a Docker container?
  • How do I extend a default docker image command without interrupting the default behaviour
  • Docker, CoreOS and fleet based deployments
  • 2 Solutions collect form web for “Difference between nodejs v0.12 and v5.x distributions”

    You should definitely not use any of the v0.x versions of Node.js as support for them are set to expire in 2016.

    You should use either v4 (code name argon) which is the next LTS (long term support) version of Node.js or v5 which is the latest stable version.

    Also, Node.js has an official Docker Image:

    FROM node:5
    

    I’m new to node.js/npm and was confused by this as well. I’m installing on CentOS 7 using “yum install nodejs”

    yum installs a 0.10 version of node.js

    Then, when I npm installed another module, I saw some warning saying it wanted node.js >= 0.12… which led me to believe I needed v0.12… (Duh, 5.3.0 >= 0.12, but I was confused and scared at the time)

    So google brought me to this question, and I followed Michaels advice.

    I went and read the change log as suggested in his comment, and it’s pretty clear that the version numbers are sequential, they just have some big jumps in a short amount of time:

    v0.10.39 : 2015-06-18
    ...
    
    v0.12.7 : 2015-07-09
    ...
    
    v3.0.0 : 2015-08-04
    ...
    
    v4.1.0 : 2015-09-17
    ...
    
    v5.3.0 : 2015-12-16
    

    Hope that helped.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.