1:https://nodejs.org/zh-cn/download/

Vue 开发环境

2:

Vue 开发环境

3:  配置全局变量,如果在其他如E:下面也能使用 node 则无需配置

则在我安装的文件夹【D:\Develop\nodejs】下创建两个文件夹【node_global】及【node_cache】
打开cmd输入如下命令

npm config set prefix "D:\Develop\nodejs\node_global"
npm config set cache "D:\Develop\nodejs\node_cache"

Vue 开发环境
4: 到环境变量那里设置

Vue 开发环境

5: 配置 vue https://cn.vuejs.org/v2/guide/   和  https://cli.vuejs.org/

 

Vue 开发环境

 

6:

Vue 开发环境

7:  打开命令行

vue create demo1

cd demo1

npm run serve

npm run build 

8: 运行成功

Vue 开发环境

 Vue 开发环境

相关文章: