Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitlab-ci.yml for Gravity install-dependencies job #1231

Open
michaelwnau opened this issue Mar 27, 2024 · 0 comments
Open

Update .gitlab-ci.yml for Gravity install-dependencies job #1231

michaelwnau opened this issue Mar 27, 2024 · 0 comments
Assignees

Comments

@michaelwnau
Copy link

michaelwnau commented Mar 27, 2024

Summary:

The current CI/CD pipeline configuration in .gitlab-ci.yml does not explicitly handle Node.js versioning, leading to a version mismatch error during the install-dependencies job. This issue outlines the need to update the pipeline configuration to ensure compatibility with our project's Node.js version requirement.

Background:

Our project requires Node.js version 20.11.1 for its dependencies. However, the current CI/CD pipeline setup in .gitlab-ci.yml uses a Docker image with Node.js version 18.17.1, resulting in an incompatible module error during the install-dependencies job. This version mismatch prevents the pipeline from successfully completing the dependency installation, thereby hindering our development and deployment processes.

Problem Statement:

The install-dependencies job in our CI/CD pipeline fails due to a Node.js version mismatch. The error logged is as follows:

error [email protected]: The engine "node" is incompatible with this module. Expected version "^20.11.1". Got "18.17.1"

Adding something like:

variables:
  NODE_VERSION: '20.11.1'

before_script:
  - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  - source $HOME/.nvm/nvm.sh
  - nvm install $NODE_VERSION
  - nvm use $NODE_VERSION

and test the install-dependencies job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants