A way to define the latest and/or stable version of node in .yml

nodejs

#1

Every time there is a new version of node we have to update .yml file to the latest or latest stable (LTS) version number.

It will be nice if that can be done automatically by CircleCI. So instead of defining in .yml

  node:
    version: 6

We can have

  node:
    version: stable

and

  node:
    version: latest

And CI will automatically pick the latest (e.g. now 6.8.1), or in case of stable it will be the latest LTS (e.g. now 4.6.0)


#2

It’s already the case since they are using nvm under the hood.
The only difference with your request is that stable is at the moment under LTS (only until tomorrow)


#3

@nicolas

my circle.yaml

machine:
  node:
    version: 6.9.5
  npm:
    version: 3.10.10 

However when npm installing, circle says it’s using node v4+.


#4

I have same issue


#5

Same issue :frowning:


#6

same issue


#7

You might need to pick a version from this list:
https://circleci.com/docs/1.0/build-image-trusty/#nodejs

But otherwise I advise moving to CircleCI 2.0.


#8

3 posts were split to a new topic: Node version in 2.0


#9