Skip to content

Flower290320239/VueDocs

 
 

Repository files navigation

环境和启动

1. 环境

1.在您的桌面,轻轻的右键,找到Git Bash Here

1.1 在此之前,您需要安装Git,还有VS codeWebStorm

1.2 顺便再安装一下,Node.js,选择左边的长期维护版

1.3 装完Node.js记得把Yarn也装了

为什么不用npm?别问,要用也不是不行,没说不能用

Yarn官网经常抽风,如果下载页面出现404,直接win+R输入cmd

# Windows 安装
npm install -g yarn --registry=https://registry.npm.taobao.org
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
# 装完顺便通过检查版本确认安装是否成功,失败就去问Google吧
yarn --version

2. 启动

# 克隆Project
git clone https://github.com/AsheOne18/VueDocs.git

# 进入VueDocs目录
cd VueDocs

# 安装依赖
yarn install # 或npm install 

# 启动
yarn docs:dev # 或 # npm run dev

# 万能的8080
http://localhost:8080/

注意

  • 如果你的现有项目依赖了 webpack 3.x,我们推荐使用 Yarn而不是 npm 来安装 VuePress。因为在这种情形下,npm 会生成错误的依赖树。

About

和小伙伴的Blog,记录一些学习

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vue 66.3%
  • JavaScript 20.1%
  • Stylus 12.8%
  • Other 0.8%