[Vue3.0]项目创建

运行环境MacOS

vue create vue-admin

Vue CLI v4.2.3
# 手动选择
? Please pick a preset:
  vue_shop_preset (babel, router, eslint)
  default (babel, eslint)
❯ Manually select features 

? Check the features needed for your project:
 ◉ Babel
 ◯ TypeScript
 ◯ Progressive Web App (PWA) Support
 ◉ Router
 ◉ Vuex
 ◉ CSS Pre-processors
❯◉ Linter / Formatter
 ◯ Unit Testing
 ◯ E2E Testing

# 网页访问的时候是不是带#号
? Use history mode for router? (Requires proper server setup for index fallback in production) No

# CSS样式
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default):
  Sass/SCSS (with dart-sass)
❯ Sass/SCSS (with node-sass)
  Less
  Stylus

# 格式化编码器
? Pick a linter / formatter config:
  ESLint with error prevention only
  ESLint + Airbnb config
  ESLint + Standard config
❯ ESLint + Prettier

? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)
❯◉ Lint on save
 ◯ Lint and fix on commit

# 插件文件存放位置
? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)
❯ In dedicated config files
  In package.json

# 是否保存为模板
? Save this as a preset for future projects? (y/N) n

执行过程

Vue CLI v4.2.3
✨  Creating project in /Users/Leo/Dropbox/Tutorial/VUE/vue-admin.
🗃  Initializing git repository...
⚙️  Installing CLI plugins. This might take a while...


> fsevents@1.2.11 install /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> yorkie@2.0.0 install /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/yorkie
> node bin/install.js

setting up Git hooks
done


> core-js@3.6.4 postinstall /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> ejs@2.7.4 postinstall /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/ejs
> node ./postinstall.js

added 1228 packages from 862 contributors in 35.9s

35 packages are looking for funding
  run `npm fund` for details

🚀  Invoking generators...
📦  Installing additional dependencies...


> node-sass@4.13.1 install /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/node-sass
> node scripts/install.js

Cached binary found at /Users/Leo/.npm/node-sass/4.13.1/darwin-x64-72_binding.node

> node-sass@4.13.1 postinstall /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/node-sass
> node scripts/build.js

Binary found at /Users/Leo/Dropbox/Tutorial/VUE/vue-admin/node_modules/node-sass/vendor/darwin-x64-72/binding.node
Testing binary
Binary is fine
added 166 packages from 99 contributors in 12.168s

42 packages are looking for funding
  run `npm fund` for details

⚓  Running completion hooks...

📄  Generating README.md...

🎉  Successfully created project vue-admin.
👉  Get started with the following commands:

 $ cd vue-admin
 $ npm run serve
posted @ 2020-03-12 22:06  LeoShi2020  阅读(438)  评论(0编辑  收藏  举报