Cannot build nestjs app in nx monorepo with App Platform

I like the simplicity of the App Platform. Can anyone help me with building an nestjs app in nx monorepo, please?

I got this error when I run the build command (yarn nx run my-nest-app:build:production) for an nx repo (

[nx-test] [2022-05-17 05:33:48] 
[nx-test] [2022-05-17 05:34:23] cp: cannot create special file '/layers/digitalocean_node/node_modules/.cache/nx/d/d.sock': Operation not supported
[nx-test] [2022-05-17 05:34:23] unable to invoke layer creator
[nx-test] [2022-05-17 05:34:23] caching node_modules for future builds: exit status 1
[nx-test] [2022-05-17 05:34:23] ERROR: failed to build: exit status 1
[nx-test] [2022-05-17 05:34:33] 
[nx-test] [2022-05-17 05:34:33] For documentation on the buildpacks used to build your app, please see:
[nx-test] [2022-05-17 05:34:33]    Node.js:
[nx-test] [2022-05-17 05:34:33] 
[nx-test] [2022-05-17 05:34:33]  ! Build failed (145)

Thank you in advance!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Moises Eskinazi
DigitalOcean Employee
DigitalOcean Employee badge
November 8, 2022


Can you try force redeploying your app and let us know what happens? If the error persists please submit a support ticket.

Best, Moises

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up