vuepress博客主题—vuepress-theme-reco


title: vuepress博客主题—vuepress-theme-reco date: 2023-08-03 categories:

  • 代码管理 tags:

  • 代码管理


vuepress博客主题—vuepress-theme-reco

Quick start

npx

npx @vuepress-reco/theme-cli init my-blog

npm

# init
npm install @vuepress-reco/theme-cli -g
theme-cli init my-vuepress2

# install
cd my-vuepress2
npm install

# run
npm run dev

# build
npm run build

yarn

# init
yarn global add @vuepress-reco/theme-cli
theme-cli init my-vuepress2

# install
cd my-vuepress2
yarn install

# run
yarn dev

# build
yarn build

yarn安装

在最后一项选择时,选择2.x就好

Microsoft Windows [版本 10.0.19045.3448]
(c) Microsoft Corporation。保留所有权利。

E:\>yarn global add @vuepress-reco/theme-cli
yarn global v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "@vuepress-reco/theme-cli@1.0.8" with binaries:
      - theme-cli
Done in 0.89s.

E:\>theme-cli init my-vuepress2
? What's the title of your project?
? What's the description of your project?
? What's the author's name?
? What style do you want your home page to be?(The 2.x version is the beta version) 2.x
√ [1/1] Load file from git

Load successful, enjoy it!

# Inter your blog
$ cd my-vuepress2
# Install package
$ yarn & npm install

E:\>cd my-vuepress2

yarn install v1.22.19install
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "vuepress > vuepress-vite@2.0.0-beta.67" has unmet peer dependency "vue@^3.3.4".
warning "vuepress > vuepress-vite@2.0.0-beta.67" has unmet peer dependency "@vuepress/client@2.0.0-beta.67".
warning "vuepress > vuepress-vite > @vuepress/theme-default > sass-loader@13.3.2" has unmet peer dependency "webpack@^5.0.0".
warning "vuepress-theme-reco > @vuepress/plugin-docsearch > @docsearch/react > @algolia/autocomplete-preset-algolia@1.9.3" has unmet peer dependency "@algolia/client-search@>= 4.9.1 < 6".
warning "vuepress-theme-reco > @vuepress/plugin-docsearch > @docsearch/react > @algolia/autocomplete-core > @algolia/autocomplete-shared@1.9.3" has unmet peer dependency "@algolia/client-search@>= 4.9.1 < 6".
warning "vuepress-theme-reco > @vuepress/plugin-docsearch > @docsearch/react > @algolia/autocomplete-core > @algolia/autocomplete-plugin-algolia-insights@1.9.3" has unmet peer dependency "search-insights@>= 1 < 3".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 110.42s.

yarn run v1.22.19arn dev
$ vuepress dev .
√ Initializing and preparing data - done in 211ms

  vite v4.4.9 dev server running at:

  ➜  Local:   http://localhost:8080/
  ➜  Network: http://192.168.1.7:8080/
  ➜  Network: http://192.168.137.1:8080/

访问 http://localhost:8080/


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值