Create Vue project

Install nodejs , use the following command to check whether the installation is successful in the cmd window

node -v
npm -v

The installation steps are as follows

1、安装生成脚手架的工具:npm i -g @vue/cli
2、用脚手架生成工具为本次项目生成一套脚手架结构代码 vue create vuexm;vuexm为项目名称
3、可选结构如下
1)、Manually select features 手动选择要素
2)、Babel 将所有新版的js代码翻译为旧版也支持
3)、Router
4)、Vuex
5)、() Linter / Formatter 严格模式(可以不选)
6)、Use history mode for router? 是否使用history 模式路由中 就是Vue中的#号,可选 N
7)、In package.json 
8)、Save this as a preset for future projects? (y/N) 将此保存为将来项目的预设,可选N
4、运行 cd进入当前文件夹 npm run serve

Guess you like

Origin blog.csdn.net/weixin_44640323/article/details/112496176