赞
踩
Vue官方安装过程:https://cli.vuejs.org/zh/guide/installation.html
安装淘宝镜像(会让你安装Vue的速度加快):
npm config set registry https://registry.npm.taobao.org
安装vue命令:
npm install -g @vue/cli
vue create vue
如果显示:“‘vue’ 不是内部或外部命令,也不是可运行的程序”,说明环境变量没有配置,需要配置一下环境变量,可以参考这个帖子:https://blog.csdn.net/weixin_44950987/article/details/129284446
配置好环境变量后,关闭cmd,重新进入执行:vue create vue命令即可:
会出现以下画面,说明安装成功
cd vue
npm run serve
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。