This image is designed to supercede the legacy CircleCI Node.js image,
cimg/node is a Docker image created by CircleCI with continuous integration builds in mind.
Each tag contains a version of Node.js,
yarn v1, and any binaries and tools that are required for builds to complete successfully in a CircleCI environment.
This image can be used with the CircleCI
1 2 3 4 5 6 7
jobs: build: docker: - image: cimg/node:14.12.0 steps: - checkout - run: node --version
In the above example, the CircleCI Node.js Docker image is used for the primary container.
More specifically, the tag
14.12.0 is used meaning the version of Node.js will be Node.js v14.12.0.
You can now use Node.js within the steps for this job.
This image contains the Node.js programming language and its package managers.
This image has the following tagging scheme:
<node-version> - The version of Node.js to use.
This can be a full SemVer point release (such as
10.16.3), or just the minor release (such as
12.6), or a version alias.
This Node.js image has two version aliases, "current" and "lts".
This aliases will always point to the latest "current" and latest "lts" releases that Node.js has as according to their website.
Keep in mind that using an alias tag will be less stable that specifying a full SemVer version.
If you use the minor release tag, it will automatically point to future patch updates as they are released by Node.js.
For example, the tag
12.6 points to Node.js v12.6.0 now, but when the next release comes out, it will point to Node.js v12.6.1.