如何搭建vue脚手架

xiaoxiao2021-02-28  47

首先第一步确认安装了node.打开cmd,输入命令

node -v npm install -g -vue -cli 安装 vue init webpack my-project 新建一个项目 npm run dev 运行 ? Install vue-router? (Y/n) y 是否使用vue-router;? Use ESLint to lint your code? (Y/n) y 是否使用ESLint;? Pick an ESLint preset (Use arrow keys) ❯ Standard (https://github.com/feross/standard) Airbnb (https://github.com/airbnb/javascript) none (configure it yourself) 这里选择Standard (https://github.com/feross/standard)? Setup unit tests with Karma + Mocha? (Y/n) n 是否需要单元测试;Setup e2e tests with Nightwatch? (Y/n) n是否需要单元测试;
转载请注明原文地址: https://www.6miu.com/read-2631142.html

最新回复(0)