# vuepress-blog **Repository Path**: sickeeer/blog-resource ## Basic Information - **Project Name**: vuepress-blog - **Description**: 一个基于 vuepress 的开箱即用博客。托管至 vercel 免费、无后端。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://110501.com - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 3 - **Created**: 2021-03-17 - **Last Updated**: 2025-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: vuepress, blog ## README ## 安装 推荐使用 `yarn` ```bash npm i yarn -g ``` 安装依赖 ```bash yarn ``` 全局安装 vercel ```bash yarn global add vercel ``` 注意:直接使用 `vercel` 命令 ,需要配置全局安装路径 键入 ```bash yarn global dir ``` 查询 `yarn` 全局安装路径,配置入环境变量。 如嫌麻烦,可以使用 `npm` 对 `vercel` 进行全局安装,命令参照第一条。 ## 打包并上传到 vercel(需在根目录运行如下命令) ```bash ./_deploy2vercel.sh ``` ## 打包并上传到服务器(需在根目录运行如下命令) ```bash ./_deploy2ecs.sh ``` ## 打包并上传到阿里OSS(需在根目录运行如下命令) ```bash ./ossutil64.exe config # 第一个参数输入 .ossutilconfig 其他按照提示操作 ``` ## 上传到 gitee(需在根目录运行如下命令) ```bash ./pushToGit.sh ``` ## 打包失败 请删除 `node_modules` 后,重新用 `yarn` 安装依赖后重试。 ## icon 项目中引入了 https://vue-feather-icons.egoist.sh/ 移步该网址查看 ## 开箱食用 1. 注册 `vercel` 账号。 2. 将 `docs\.vuepress\config.js` 中 域名配置为 `https://110501.com` 处修正为自己的域名。 3. 新注册 `leancloud` 将 `docs\.vuepress\config.js` 中 valine 的配置进行替换。 4. 如无需首页,将 `nav` 配置项 `link: '/post/'` => `link: '/'`, `directories` 配置项 `path: '/post/'` => `path: '/'`。 5. 配置自己的 `vercel` , 参照 https://110501.com/2021/03/23/how-to-use-vercel/#vercel-cli 6. 移除 `docs\_post` 下文件,键入 `./new.sh` 依据提示输入,开始编辑文章吧! ## issue 1. Error: Cyclic dependency: "[object Object]" 删除 `node_modules` ,重新运行 `yarn` , 如果依然不行,尝试打开 `/node_modules/vuepress-html-webpack-plugin/index.js:33` 将 ``` chunksSortMode: 'auto', =>  chunksSortMode: 'none', ``` 参照 https://github.com/marcelklehr/toposort/issues/20#issuecomment-388025176 ## what's new - 因存在图片拉取错误的原因,暂时移除 feed ,不排除之后不会加回。