streammmm icon indicating copy to clipboard operation
streammmm copied to clipboard

Fix Build Errors by Updating Node.js Version and Dependencies

Open devnok opened this issue 1 year ago • 0 comments

This pull request addresses build errors by updating the Node.js version in the Docker environment and updating critical dependencies.

Changes

  1. Node.js Base Image Update

    • Change: Updated the Dockerfile's base image from node:16.16.0-alpine3.15 to node:20.18.0-alpine.
    • Reason: The build process failed when installing @nestjs/cli due to Node.js version incompatibility. The newer version of @nestjs/cli requires Node.js version ^18.13.0 || >=20.9.0, but the previous image provided Node.js 16.16.0.
    • Error Message:
      error @angular-devkit/[email protected]: The engine "node" is incompatible with this module. Expected version "^18.13.0 || >=20.9.0". Got "16.16.0"
      error Found incompatible module.
      
    • Resolution: Upgrading to Node.js 20.18.0 ensures compatibility with @nestjs/cli and resolves the build errors.
  2. Dependency Updates

devnok avatar Oct 06 '24 13:10 devnok