Astro 服务端渲染web

Astro Blog

创建项目

D:\ProgramData\AiWeb\frontend>npm create astro@latest
npm warn Unknown user config "ELECTRON_MIRROR". This will stop working in the next major version of npm.
Need to install the following packages:
[email protected]
Ok to proceed? (y) y


> npx
> create-astro


 astro   Launch sequence initiated.

   dir   Where should we create your new project?
         ./astro-blog

  tmpl   How would you like to start your new project?
         Use blog template

  deps   Install dependencies?
         Yes

   git   Initialize a new git repository?
         Yes

      ✔  Project initialized!
         ■ Template copied
         ■ Dependencies installed
         ■ Git initialized

  next   Liftoff confirmed. Explore your project!

         Enter your project directory using cd ./astro-blog
         Run npm run dev to start the dev server. CTRL+C to stop.
         Add frameworks like react or tailwind using astro add.

         Stuck? Join us at https://astro.build/chat

D:\ProgramData\AiWeb\frontend>cd ./astro-blog
posted @ 2026-02-05 14:44  jeyar  阅读(4)  评论(0)    收藏  举报