I am too late at this but the issue is that the build folder in nest has the following path /app/dist/src/main so in your package.json use this path and then you will be able to execute the code.