fuwari
fuwari copied to clipboard
munmap_chunk() error when running `pnpm dev`
I am using WSL2 on Windows 11. I followed the steps in the README for this repo but was getting this error whenever I ran pnpm dev
and clicked the localhost URL:
> $ pnpm astro dev ⬡ 20.12.0 [±main ●]
> [email protected] astro /home/nads/personal-blog
> astro "dev"
astro v4.5.12 ready in 1026 ms
┃ Local http://localhost:4321/
┃ Network use --host to expose
17:10:58 watching for file changes...
17:11:02 [astro-icon] Loaded icons from fa6-brands, fa6-regular, fa6-solid, material-symbols
17:11:07 [200] / 3207ms
munmap_chunk(): invalid pointer
Aborted
ELIFECYCLE Command failed with exit code 134.
I found the fix for this issue here, which worked for me. You just have to add this to the package.json :
"pnpm": {
"overrides": {
"vite-imagetools": "^6.2.7",
"sharp": "^0.33.0"
}
}
Feel free to update the package.json with this if you want, or add a note in the README about this issue. Thanks for your hard work!