Hi, i use node:latest image on gitlab-ci. but during 2 days, "npm build" command failed on gitlab runners.
The reason is:
To use this template, you must update following to modules:
npm: 6.5.0-next.0 should be >= 3.0.0
I review the releases, only last npm version's look different from other.
looks:
Node.js 11.6.0 | 聽 | 2018-12-26 | 7.0.276.38 | 6.5.0-next.0 | 67 | Downloads聽Changelog聽Docs
Node.js 11.5.0 | 聽 | 2018-12-18 | 7.0.276.38 | 6.4.1 | 67 | Downloads聽Changelog聽Docs
Node.js 11.4.0 | 聽 | 2018-12-07 | 7.0.276.38 | 6.4.1 | 67 | Downloads聽Changelog聽Docs
.
.
.
my package.json contain
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
what am i wrong?
Thank You.
6.5.0-next.0 is an unstable/pre-release version that the semver library checking won't recognize as being greater than 3. There is noththing that the node-docker image can do about this thought at is just a wrapper of the NodeJS releases. You might want to use a regular LTS release like node:10 for your CI otherwise you will get things breaking since 11/latest may have breaking changes
I have set version 11 for some package dependency, its works now.
Thank You.
The version of npm in the docker images is just the version that is bundled with node - we do not install it manually.
Most helpful comment
6.5.0-next.0is an unstable/pre-release version that the semver library checking won't recognize as being greater than 3. There is noththing that the node-docker image can do about this thought at is just a wrapper of the NodeJS releases. You might want to use a regular LTS release likenode:10for your CI otherwise you will get things breaking since 11/latest may have breaking changes