脚手架3.0

122 阅读1分钟

目录:

  • 01.什么是脚手架_
  • 02.脚手架的基本使用_
  • 03.图形化方式创建Vue项目_
  • 04.2.x旧模板创建旧版Vue项目_
  • 05.脚手架生成的项目结构分析_
  • 06.脚手架的自定义配置_

一.什么是脚手架

官网:cli.vuejs.org/zh/

安装3.x的脚手架:
npm install -g @vue/cli
查看版本
vue -V 

安装报错

npm ERR! Unexpected end of JSON input while parsing near '...32},"2.7.0-dev.201801'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lmq28\AppData\Roaming\npm-cache\_logs\2020-05-28T15_50_28_790Z-debug.log

试过了网上的解决办法是:直接运行 npm cache clear --force 还是不行

安装不成功 就去 c 盘把cli 删掉

重新安装脚手架

下载下来变成了 4.x

vue create my-proct

警告:名称不能再包含大写字母