-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
Which component is affected?
Build process
Describe the bug
When running astro build in a Deno environment, the build process fails due to a permission error. The error message is as follows:
21:53:14 [ERROR] [@qwikdev/astro] An unhandled error occurred while running the "astro:build:ssr" hook
EACCES: permission denied, mkdir '/dist'
Location:
/home/qz/dev/qwik_astro/node_modules/.deno/vite@6.3.5/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:6860:15
Stack trace:
at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:91:3)
at denoErrorToNodeError (ext:deno_node/internal/errors.ts:1914:14)
at copyDir (file:///home/qz/dev/qwik_astro/node_modules/.deno/vite@6.3.5/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:6860:15)
at buildEnvironment (file:///home/qz/dev/qwik_astro/node_modules/.deno/vite@6.3.5/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:46208:7)
at async withTakingALongTimeMsg (file:///home/qz/dev/qwik_astro/node_modules/.deno/astro@5.10.1/node_modules/astro/dist/integrations/hooks.js:32:12)
Expected behavior:
The build should complete without any permission errors.
Reproduction
(none)
Steps to reproduce
- Run
deno -A npm:@qwikdev/create-astro
qz@qz-linux:~/dev$ deno -A npm:@qwikdev/create-astro
โ
โ Where would you like to create your new project? (Use './' for current directory)
โ ./qwik_astro
โ
โ Would you like to use the default template?
โ Yes
โ
โ Would you like to use a server adapter?
โ No
โ
โ Would you prefer Biome over ESLint/Prettier?
โ Yes
โ
โ Would you like to add CI workflow?
โ Yes
โ
โ Would you like to install deno dependencies?
โ Yes
โ
โ Would you like to initialize Git?
โ Yes
โ
โ What should be the name of this package?
โ qwik_astro
โ Let's create a QwikDevAstro App โจ
โ
โ Creating new project in /home/qz/dev/qwik_astro ... ๐
โ
โ Copying `.gitignore` file... ๐
โ
โ Installing dependencies...
Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
โ โ npm:@biomejs/biome@1.9.4
โ โ npm:sharp@0.33.5
โ
โ โ This may cause the packages to not work correctly.
โโ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`:
deno install --allow-scripts=npm:@biomejs/biome@1.9.4,npm:sharp@0.33.5
โ
โ โน๏ธ Updated package name to "qwik_astro" ๐ฆ๏ธ
โ
โ โน๏ธ Replacing 'npm run' by 'deno' in package.json...
โ
โ ๐ท Adding CI workflow...
โ
โ Git initialized ๐ฒ
โ
โ Ready to start ๐ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ ๐ฆ Success! Project created in dev/qwik_astro directory โ
โ โ
โ ๐ฐ Next steps: โ
โ cd dev/qwik_astro โ
โ deno start โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Happy coding! ๐ป๐
- Run
cd ./qwik_astro - Run
deno -A npm:astro build
qz@qz-linux:~/dev/qwik_astro$ deno -A npm:astro build
21:53:11 [content] Syncing content
21:53:11 [content] Synced content
21:53:11 [types] Generated 307ms
21:53:11 [build] output: "static"
21:53:11 [build] mode: "static"
21:53:11 [build] directory: /home/qz/dev/qwik_astro/dist/
21:53:11 [build] Collecting build info...
21:53:11 [build] โ Completed in 329ms.
21:53:11 [build] Building static entrypoints...
21:53:14 [vite] โ built in 2.75s
21:53:14 [build] โ Completed in 2.80s.
vite v6.3.5 building for production...
โ 10 modules transformed.
โ Build failed in 366ms
21:53:14 [ERROR] [@qwikdev/astro] An unhandled error occurred while running the "astro:build:ssr" hook
EACCES: permission denied, mkdir '/dist'
Location:
/home/qz/dev/qwik_astro/node_modules/.deno/vite@6.3.5/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:6860:15
Stack trace:
at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:91:3)
at denoErrorToNodeError (ext:deno_node/internal/errors.ts:1914:14)
at copyDir (file:///home/qz/dev/qwik_astro/node_modules/.deno/vite@6.3.5/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:6860:15)
at buildEnvironment (file:///home/qz/dev/qwik_astro/node_modules/.deno/vite@6.3.5/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:46208:7)
at async withTakingALongTimeMsg (file:///home/qz/dev/qwik_astro/node_modules/.deno/astro@5.10.1/node_modules/astro/dist/integrations/hooks.js:32:12)
System Info
Deno: 2.3.7+b5e41f6 (canary)
System:
OS: Linux 6.14 Ubuntu 25.04 25.04 (Plucky Puffin)
Container: Yes
Shell: 5.2.37 - /bin/bash
Binaries:
Node: 24.3.0 - ~/.local/share/pnpm/node
npm: 11.4.2 - ~/.local/share/pnpm/npm
pnpm: 10.12.4 - ~/.local/share/pnpm/pnpmAdditional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels