Building Failing with nest js

I have a NestJs app I m trying to build it but it’s failing. Below is the logs form the build

Apr 12 10:19:23 PM  ==> Cloning from https://github.com/theashishmaurya/video-notes-backend...
Apr 12 10:19:24 PM  ==> Checking out commit 46c2607b3984430f5c2d0e7eaaf368cc1e9c37fe in branch main
Apr 12 10:19:28 PM  ==> Running build command 'yarn; yarn build'...
Apr 12 10:19:28 PM  yarn install v1.22.5
Apr 12 10:19:28 PM  [1/4] Resolving packages...
Apr 12 10:19:29 PM  [2/4] Fetching packages...
Apr 12 10:19:47 PM  error @angular-devkit/core@15.2.4: The engine "node" is incompatible with this module. Expected version "^14.20.0 || ^16.13.0 || >=18.10.0". Got "14.17.0"
Apr 12 10:19:47 PM  error Found incompatible module.
Apr 12 10:19:47 PM  info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Apr 12 10:19:47 PM  yarn run v1.22.5
Apr 12 10:19:47 PM  $ nest build
Apr 12 10:19:47 PM  /bin/sh: 1: nest: not found
Apr 12 10:19:47 PM  error Command failed with exit code 127.
Apr 12 10:19:47 PM  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Apr 12 10:19:47 PM  ==> Build failed 😞
Apr 12 10:19:47 PM  ==> Generating container image from build. This may take a few minutes...

Hi,

The line…

The engine "node" is incompatible with this module. Expected version "^14.20.0 || ^16.13.0 || >=18.10.0". Got "14.17.0"

…sounds like you haven’t specified a Node version to match the version you developed on.

That’s probably a good starting point to try and resolve your issue.

Alan

1 Like

Thanks, It worked.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.