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

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.