一、vue-cli新建项目
2020-11-30 本文已影响0人
大鱼_f09b
工具:vscode
参考:vue-cli安装(https://cli.vuejs.org/zh/guide/installation.html)
1、本地新建文件夹,作为项目空间的父目录
2、打开vscode,cd进入新建的文件夹
3、执行npminstall-g @vue/cli
4、执行npm install -g @vue/cli-init
5、除去项目名称外全选第一个如下
? Project name dc
? Project description A Vue.js project
? Author yiliyu
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm install` for you after the project has been created? (recommended) npm
6、创建成功,访问地址:http://localhost:8080/