yarn依赖node.js 所以安装前确认node已安装并生效 node -v验证是否生效
进yarn官网:https://yarnpkg.com/zh-Hant/
直接选win下msi稳定版安装包安装

安装后 yran -v 验证安装是否生效 新版的yran不用配置path直接生效
安装vue-cli
yarn global add vue-cli

验证vue是否下载到本地
yarn global list

最后直接vue -V验证
vue -V

最后cd进入项目文件夹 vue init webpack 项目名 开始新建项目即可
网友评论