vue环境搭建
1) 安装node 官网下载安装包,傻瓜式安装:https://nodejs.org/zh-cn/ 2) 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org 3) 安装脚手架 cnpm install -g @vue/cli 4) 进入要存放项目的目录 cd 目标目录 5) 创建项目 vue create 项目名 6) 进入项目目录 cd 项目名 7) 启动项目 npm run serve 8) 停止项目 ctrl+c 注:如果2/3两步出错 npm cache clean --force
原文:https://www.cnblogs.com/pdun/p/10908975.html