原文链接地址:https://www.jianshu.com/p/d3a14dfa87ff

1、安装 Yarn - 代替 npm 命令(官网下载)

下载链接:https://yarnpkg.com/en/docs/install#windows-stable
2、配置 Yarn 走 Taobao 源 :

yarn config set registry https://registry.npm.taobao.org

3、全局安装 vue-cli

yarn global add vue-cli

4、进入vue项目,进入到创建的项目根目录下

cd XXX
# 初始化项目
vue init webpack 项目名称

5、安装依赖包

yarn

yarn 是 yarn install 的简写,可直接敲击 yarn ,功能和 npm install 一样

6、最后运行项目

yarn run dev

相关文章:

  • 2021-08-29
  • 2021-04-23
  • 2021-09-18
  • 2022-01-22
  • 2021-11-09
猜你喜欢
  • 2021-08-08
  • 2021-11-12
  • 2021-09-12
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案