Vue CLI
-
安装
npm install -g @vue/cli # OR yarn global add @vue/cli vue --version
创建方法一
- 命令
$: vue init webpack test1
? Project name test1
? Project description A Vue.js project
? Author
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? 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
-
vue create hello-vue
-
运行命令
npm run serve
网友评论