Hello there,
I am building a open-source blog theme named sh-blog-next (tentative), now I'm trying build it, bottom is my package.json.
{
"name": "sh-blog-next",
// ...
"scripts": {
"dev": "astro dev",
"build": "astro build",
"postbuild": "pagefind --site dist",
"preview": "astro preview",
"astro": "astro",
"wrangler": "wrangler",
"deploy": "wrangler deploy --assets=./dist",
"cn": "pnpm dlx shadcn@latest"
},
// ...
}
However, everytime when I try to build it, shell will print error:
$ nr build
> [email protected] build C:\Users\51020\Documents\code\NodeJS\sh-blog-next
> astro build
22:20:35 [content] Syncing content
22:20:35 [content] Astro config changed
22:20:35 [content] Clearing content store
22:20:35 [content] Synced content
22:20:35 [types] Generated 797ms
22:20:35 [build] output: "static"
22:20:35 [build] mode: "static"
22:20:35 [build] directory: C:\Users\51020\Documents\code\NodeJS\sh-blog-next\dist\
22:20:35 [build] Collecting build info...
22:20:35 [build] ✓ Completed in 884ms.
ELIFECYCLE Command failed with exit code 3221226505.
I tried add more buffer, run pnpm store prune to clean pnpm, use squoosh to replace sharp engine, and more methods to fix it.
Bottom is some informations to my device:
node: 24.3.0 (via fnm)
pnpm: 10.3.0
Astro: 5.16.6
Windows: 24H2 build 26100.7462
Shell: Powershell 7
If anyone needs more informations, please tell me.
Btw, the project is uploaded to https://github.com/510208/sh-blog-next/tree/dev, if there anyone wants to try it out.