Astro not found at cloudflare pages build
Hi cloudflare community. I am trying to build the astrowind template on Cloudflare pages. I placed the astrowind files in a repo https://gitlab.com/future-proof-cafe/website which is connected to the cloudflare pages builder.
I followed the instructions at https://developers.cloudflare.com/pages/framework-guides/deploy-an-astro-site/ , but getting a build error:
21:50:43.831 > astro build
21:50:43.831
21:50:43.849 sh: 1: astro: not found 21:50:43.883 Failed: build command exited with code: 127 21:50:44.669 Failed: error occurred while running build command I can't find out what I am doing wrong. The whole log of Cloudflare pages build https://gitlab.com/-/snippets/2595322 Thanks for helping
21:50:43.849 sh: 1: astro: not found 21:50:43.883 Failed: build command exited with code: 127 21:50:44.669 Failed: error occurred while running build command I can't find out what I am doing wrong. The whole log of Cloudflare pages build https://gitlab.com/-/snippets/2595322 Thanks for helping
Deploy an Astro site · Cloudflare Pages docs
Astro is an all-in-one web framework for building fast, content-focused websites. By default, Astro builds websites that have zero JavaScript runtime …
2 Replies
@Leo Thanks. Not sure what you exactly mean, but in the build configuration of cloudflare pages the build command is already configured with "npm run build"
It might be worth upgrade to build image v2. Looking through the lock it doesn't appear that your dependencies are getting installed.