安装环境
下载安装Node.js
https://nodejs.org/zh-cn
- 创建GitHub账号和仓库
初始化博客
使用模板创建Astro项目
npm create astro@latest -- --template <github用户名/github仓库名>开启代理可能会导致报错,不开代理速度又比较慢。
启动本地测试
npm run dev生成静态网页(dist文件夹内)
npm run build
下载安装Node.js
https://nodejs.org/zh-cn
使用模板创建Astro项目
npm create astro@latest -- --template <github用户名/github仓库名>开启代理可能会导致报错,不开代理速度又比较慢。
启动本地测试
npm run dev生成静态网页(dist文件夹内)
npm run build
评论区:
评论已关闭