Vue CLI v4.5.10 ? Please pick a preset: Manually select features ? Check the features needed for your project: (*) Choose Vue version (*) Babel ( ) TypeScript ( ) Progressive Web App (PWA) Support (*) Router (*) Vuex ( ) CSS Pre-processors >( ) Linter / Formatter ( ) Unit Testing ( ) E2E Testing
在 Choose a version of Vue.js that you want to start the project with (Use arrow keys)(选择项目的 Vue.js 版本) 选择 2.x
1 2 3 4 5 6
Vue CLI v4.5.10 ? Please pick a preset: Manually select features ? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex ? Choose a version of Vue.js that you want to start the project with (Use arrow keys) > 2.x 3.x (Preview)
在 Use history mode for router?(路由使用history模式) 中回答 n,不使用history模式。(当然了,这一项目y或n都没有任何影响,只是个人的习惯而已)
1 2 3 4 5
Vue CLI v4.5.10 ? Please pick a preset: Manually select features ? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex ? Choose a version of Vue.js that you want to start the project with 2.x ? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n)n
在Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys) (选择Babel, ESLint 等等第三方包的配置文件) 中选择 In dedicated config files(在专用的配置文件中)
1 2 3 4 5 6 7 8
Vue CLI v4.5.10 ? Please pick a preset: Manually select features ? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex ? Choose a version of Vue.js that you want to start the project with 2.x ? Use history mode for router? (Requires proper server setup for index fallback in production) No ? 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? (保存刚才的选择到项目预设) 中回答 n。
Vue CLI v4.5.10 ? Please pick a preset: Manually select features ? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex ? Choose a version of Vue.js that you want to start the project with 2.x ? Use history mode for router? (Requires proper server setup for index fallback in production) No ? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files ? Save this as a preset for future projects? (y/N)n
Vue CLI v4.5.10 ? Please pick a preset: Manually select features ? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex ? Choose a version of Vue.js that you want to start the project with 2.x ? Use history mode for router? (Requires proper server setup for index fallback in production) No ? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files ? Save this as a preset for future projects? No
Vue CLI v4.5.10 ✨ Creating project in D:\sources\vue_repos\mad-world-app. ⚙️ Installing CLI plugins. This might take a while...
yarn install v1.22.5 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.1: The platform "win32" is incompatible with this module. info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies...
yarn install v1.22.5 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.1: The platform "win32" is incompatible with this module. info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages...
success Saved lockfile. Done in 5.81s. ⚓ Running completion hooks...
📄 Generating README.md...
🎉 Successfully created project mad-world-app. 👉 Get started with the following commands:
$ cd mad-world-app $ yarn serve
进入创建好的项目文件夹
根据项目创建完成后倒数第二行提示,输入命令:cd mad-world-app
1 2
PS D:\sources\vue_repos> cd mad-world-app PS D:\sources\vue_repos\mad-world-app>
在 Visual Studio Code 中打开项目
方法一: 启动 Visual Studio Code, 选择打开文件夹, 选中D:\sources\vue_repos\mad-world-app 打开。
yarn add v1.22.5 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.1: The platform "win32" is incompatible with this module. info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages...
success Saved lockfile. success Saved 5 new dependencies. info Direct dependencies └─ vue-cli-plugin-vuetify@2.0.9 info All dependencies ├─ interpret@1.4.0 ├─ null-loader@3.0.0 ├─ rechoir@0.6.2 ├─ shelljs@0.8.4 └─ vue-cli-plugin-vuetify@2.0.9 Done in 10.36s. ✔ Successfully installed plugin: vue-cli-plugin-vuetify
? Choose a preset: Default (recommended)
🚀 Invoking generator for vue-cli-plugin-vuetify... 📦 Installing additional dependencies...
yarn install v1.22.5 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.1: The platform "win32" is incompatible with this module. info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages...
success Saved lockfile. Done in 10.99s. ⚓ Running completion hooks...
✔ Successfully invoked generator for plugin: vue-cli-plugin-vuetify vuetify Discord community: https://community.vuetifyjs.com vuetify Github: https://github.com/vuetifyjs/vuetify vuetify Support Vuetify: https://github.com/sponsors/johnleider
PS D:\sources\vue_repos\mad-world-app> yarn add leancloud-storage yarn add v1.22.5 [1/4] Resolving packages... warning leancloud-storage > babel-runtime > core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. [2/4] Fetching packages... info fsevents@2.3.1: The platform "win32" is incompatible with this module. info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0". warning "vue-cli-plugin-vuetify > null-loader@3.0.0" has unmet peer dependency "webpack@^4.3.0". warning " > vuetify-loader@1.6.0" has unmet peer dependency "webpack@^4.0.0". [4/4] Building fresh packages... success Saved lockfile. success Saved 37 new dependencies. info Direct dependencies └─ leancloud-storage@4.10.0 info All dependencies ├─ @leancloud/platform-adapters-browser@1.5.2 ├─ @leancloud/platform-adapters-node@1.5.2 ├─ @leancloud/platform-adapters-weapp@1.6.1 ├─ @types/cookiejar@2.1.2 ├─ @types/superagent@4.1.10 ├─ @types/ws@7.4.0 ├─ ascli@1.0.1 ├─ babel-runtime@6.26.0 ├─ base64-arraybuffer@0.1.5 ├─ bytebuffer@5.0.1 ├─ charenc@0.0.2 ├─ code-point-at@1.1.0 ├─ colour@0.7.1 ├─ cookiejar@2.1.2 ├─ crypt@0.0.2 ├─ event-target-shim@5.0.1 ├─ eventemitter3@2.0.3 ├─ fast-safe-stringify@2.0.7 ├─ formidable@1.2.2 ├─ invert-kv@1.0.0 ├─ javascript-state-machine@2.4.0 ├─ lcid@1.0.0 ├─ leancloud-realtime-plugin-live-query@1.2.0 ├─ leancloud-realtime@5.0.0-rc.5 ├─ leancloud-storage@4.10.0 ├─ localstorage-memory@1.0.3 ├─ long@3.2.0 ├─ md5@2.3.0 ├─ miniprogram-api-typings@2.12.0 ├─ number-is-nan@1.0.1 ├─ optjs@3.2.2 ├─ os-locale@1.4.0 ├─ protobufjs@5.0.3 ├─ regenerator-runtime@0.11.1 ├─ superagent@5.3.1 ├─ underscore@1.12.0 └─ window-size@0.1.4 Done in 210.00s.