Mac Vue-cli脚手架搭建

安装node环境

官网地址:http://nodejs.cn/download/

我选择版本:v16.16.0

修改npm镜像地址

# 查看镜像地址
npm config get registry

# 设置镜像地址
npm config set registry https://registry.npmmirror.com

安装vue

cnpm install vue

安装vue-cli

cnpm install -g @vue/cli

安装yarn

# 安装
npm i -g yarn

# 查看版本
yarn -v
posted @ 2023-12-17 23:33  陈彦斌  阅读(25)  评论(0编辑  收藏  举报