streammmm
streammmm copied to clipboard
Fix Build Errors by Updating Node.js Version and Dependencies
This pull request addresses build errors by updating the Node.js version in the Docker environment and updating critical dependencies.
Changes
-
Node.js Base Image Update
- Change: Updated the Dockerfile's base image from
node:16.16.0-alpine3.15tonode:20.18.0-alpine. - Reason: The build process failed when installing
@nestjs/clidue to Node.js version incompatibility. The newer version of@nestjs/clirequires Node.js version^18.13.0 || >=20.9.0, but the previous image provided Node.js16.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.0ensures compatibility with@nestjs/cliand resolves the build errors.
- Change: Updated the Dockerfile's base image from
-
Dependency Updates
-
Prisma Upgrade: Updated Prisma to version
4.10.1to resolve an existing issue (prisma/prisma#16232). -
Change Bcrypt to Bcryptjs: Change node.bcrypt.js to bcryptjs to resolve an existing issue (kelektiv/node.bcrypt.js#755).
-