1、安装homebrew:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

2、下载yarn:
brew install yarn

3、官网安装node.js:
https://nodejs.org/zh-cn/download/

4、yarn下载vue/vue-cli:
yarn global add vue
yarn global add vue-cli

5、新建文件夹,cd进入,执行:
yarn init webpack 项目名

6、安装依赖:
yarn install/yarn

7、启动项目
yarn run dev

macOS+yarn+vue+vue-cli从零搭建vue开发环境

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2021-05-30
  • 2021-09-30
  • 2022-01-13
  • 2021-06-25
  • 2021-06-28
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-05-27
  • 2021-06-01
  • 2021-04-05
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案