脚手架安装
Vue CLI 是基于 Vue.js 进行快速开发的完整系统,支持搭建交互式项目、快速开始零配置原型开发、丰富的官方插件集合,以及完全图形化地创建和管理 Vue.js 项目的用户界面。
Vue CLI 致力于将 Vue.js 生态中的工具基础标准化,它确保各种构件工具基于智能的默认配置即可实现平稳衔接,使用户专注在撰写应用上,而不必浪费时间纠结配置的问题。同时,Vue CLI 也为每个工具提供了调整配置的灵活性,无须 reject。
主流的包管理工具有 3 种,分别是 npm、yarn 和 cnpm,三者选其一即可,它们都在终端使用命令运行。
一、npm
npm 资源来自国外,通常会出现资源加载速度慢、加载失败等情况。
使用 npm 命令全局安装 Vue CLI 脚手架:
[root@JumperServer:zuoyang] # npm install -g @vue/cli npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead. npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead. npm WARN deprecated [email protected]: The `apollo-server-plugin-base` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `apollo-server-errors` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `apollo-server-env` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `apollo-datasource` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `apollo-server-core` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md npm WARN deprecated [email protected]: The `apollo-server-express` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. added 872 packages in 1m 66 packages are looking for funding run `npm fund` for details [root@JumperServer:zuoyang] # vue -V @vue/cli 5.0.8
使用 npm 命令卸载全局 Vue CLI 脚手架:
[root@JumperServer:zuoyang] # npm uninstall -g @vue/cli removed 872 packages in 1s [root@JumperServer:zuoyang] # vue -V -bash: /usr/local/node/current/bin/vue: No such file or directory [root@JumperServer:zuoyang] #
二、yarn
yarn 是 Facebook 发布的一款快速、可靠、安全的依赖管理工具。yarn 会将每个下载过的包 缓存起来,在下次依赖时不会重新下载。
2.1、使用如下命令安装 yarn:
[root@JumperServer:zuoyang] # npm install -g yarn added 1 package in 2s npm notice npm notice New major version of npm available! 9.5.1 -> 10.0.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.0.0 npm notice Run npm install -g [email protected] to update! npm notice
2.2、使用 yarn 安装 Vue CLI 脚手架:
[root@JumperServer:zuoyang] # yarn -version 1.22.19 [root@JumperServer:zuoyang] # yarn global add @vue/cli yarn global v1.22.19 [1/4] Resolving packages... warning @vue/cli > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @vue/cli > @vue/cli-ui > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @vue/cli > @vue/cli-ui > [email protected]: The `apollo-server-express` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/for more details. warning @vue/cli > @vue/cli-ui > [email protected]: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md warning @vue/cli > @vue/cli-ui > apollo-server-express > [email protected]: The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > [email protected]: The `apollo-server-core` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > [email protected]: The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > vue-codemod > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. warning @vue/cli > vue-codemod > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead. warning @vue/cli > vue-codemod > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-types > [email protected]: The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3,which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > [email protected]: The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-types > [email protected]: The `apollo-server-env` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > [email protected]: The `apollo-server-env` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > [email protected]: The `apollo-server-errors` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > [email protected]: The `apollo-datasource` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > apollo-datasource > [email protected]: The `apollo-server-env` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > [email protected]: The `apollo-server-plugin-base` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > @vue/cli-ui > apollo-server-express > apollo-server-core > apollo-server-plugin-base > [email protected]: The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. Seehttps://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. warning @vue/cli > vue-codemod > jscodeshift > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated warning @vue/cli > vue-codemod > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated warning @vue/cli > vue-codemod > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated warning @vue/cli > vue-codemod > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Installed "@vue/[email protected]" with binaries: - vue Done in 44.17s. [root@JumperServer:zuoyang] #
三、cnpm
cnpm 是国内的淘宝镜像。在构建项目过程中,很多的资源包需要从国外服务器下载,受网络影响会下载失败,因此可使用淘宝镜像下载。
[root@JumperServer:zuoyang] # npm install -g cnpm --registry=https://registry.npm.taobao.org (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ idealTree:lib: sill idealTree buildDeps changed 421 packages in 9s 28 packages are looking for funding run `npm fund` for details [root@JumperServer:zuoyang] # [root@JumperServer:zuoyang] # [root@JumperServer:zuoyang] # cnpm -v [email protected] (/usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/cnpm/lib/parse_argv.js) [email protected] (/usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/cnpm/node_modules/npm/index.js) [email protected] (/usr/local/node/release/node-v18.16.0-linux-x64/bin/node) [email protected] (/usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js) prefix=/usr/local/node/release/node-v18.16.0-linux-x64 linux x64 5.10.0-60.18.0.50.r509_2.hce2.x86_64 registry=https://registry.npmmirror.com [root@JumperServer:zuoyang] # cnpm install -g @vue/cli Downloading @vue/cli to /usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/@vue/cli_tmp Copying /usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/@vue/cli_tmp/.store/@[email protected]/node_modules/@vue/cli to /usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/@vue/cli Installing @vue/cli's dependencies to /usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/@vue/cli/node_modules [1/35] commander@^7.1.0 installed at node_modules/.store/[email protected]/node_modules/commander [2/35] ini@^2.0.0 installed at node_modules/.store/[email protected]/node_modules/ini [3/35] lodash.clonedeep@^4.5.0 installed at node_modules/.store/[email protected]/node_modules/lodash.clonedeep [4/35] slash@^3.0.0 installed at node_modules/.store/[email protected]/node_modules/slash [5/35] leven@^3.1.0 installed at node_modules/.store/[email protected]/node_modules/leven [6/35] isbinaryfile@^4.0.6 installed at node_modules/.store/[email protected]/node_modules/isbinaryfile [7/35] @types/ejs@^3.0.6 installed at node_modules/.store/@[email protected]/node_modules/@types/ejs [8/35] deepmerge@^4.2.2 installed at node_modules/.store/[email protected]/node_modules/deepmerge [9/35] javascript-stringify@^2.0.1 installed at node_modules/.store/[email protected]/node_modules/javascript-stringify [10/35] debug@^4.1.0 installed at node_modules/.store/[email protected]/node_modules/debug [11/35] envinfo@^7.7.4 installed at node_modules/.store/[email protected]/node_modules/envinfo [12/35] @vue/cli-ui-addon-widgets@^5.0.8 installed at node_modules/.store/@[email protected]/node_modules/@vue/cli-ui-addon-widgets [13/35] @vue/cli-ui-addon-webpack@^5.0.8 installed at node_modules/.store/@[email protected]/node_modules/@vue/cli-ui-addon-webpack [14/35] strip-ansi@^6.0.0 installed at node_modules/.store/[email protected]/node_modules/strip-ansi [15/35] lru-cache@^6.0.0 installed at node_modules/.store/[email protected]/node_modules/lru-cache [16/35] validate-npm-package-name@^3.0.0 installed at node_modules/.store/[email protected]/node_modules/validate-npm-package-name [17/35] shortid@^2.2.15 installed at node_modules/.store/[email protected]/node_modules/shortid [18/35] js-yaml@^4.0.0 installed at node_modules/.store/[email protected]/node_modules/js-yaml [19/35] import-global@^0.1.0 installed at node_modules/.store/[email protected]/node_modules/import-global [20/35] fs-extra@^9.1.0 installed at node_modules/.store/[email protected]/node_modules/fs-extra [21/35] minimist@^1.2.5 installed at node_modules/.store/[email protected]/node_modules/minimist [22/35] recast@^0.20.3 installed at node_modules/.store/[email protected]/node_modules/recast [23/35] boxen@^5.0.0 installed at node_modules/.store/[email protected]/node_modules/boxen [24/35] pkg-dir@^5.0.0 installed at node_modules/.store/[email protected]/node_modules/pkg-dir [25/35] yaml-front-matter@^4.1.0 installed at node_modules/.store/[email protected]/node_modules/yaml-front-matter [26/35] resolve@^1.20.0 installed at node_modules/.store/[email protected]/node_modules/resolve [27/35] ejs@^3.1.6 installed at node_modules/.store/[email protected]/node_modules/ejs [28/35] globby@^11.0.2 installed at node_modules/.store/[email protected]/node_modules/globby [29/35] @vue/cli-shared-utils@^5.0.8 installed at node_modules/.store/@[email protected]/node_modules/@vue/cli-shared-utils [30/35] vue@^2.6.14 installed at node_modules/.store/[email protected]/node_modules/vue [31/35] download-git-repo@^3.0.2 installed at node_modules/.store/[email protected]/node_modules/download-git-repo [32/35] @types/inquirer@^8.1.3 installed at node_modules/.store/@[email protected]/node_modules/@types/inquirer [33/35] inquirer@^8.0.0 installed at node_modules/.store/[email protected]/node_modules/inquirer [34/35] vue-codemod@^0.0.5 installed at node_modules/.store/[email protected]/node_modules/vue-codemod [35/35] @vue/cli-ui@^5.0.8 installed at node_modules/.store/@[email protected]/node_modules/@vue/cli-ui deprecate shortid@^2.2.15 Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. deprecate [email protected] › [email protected] › @babel/plugin-proposal-class-properties@^7.1.0 This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. deprecate [email protected] › [email protected] › @babel/plugin-proposal-optional-chaining@^7.1.0 This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead. deprecate [email protected] › [email protected] › @babel/plugin-proposal-nullish-coalescing-operator@^7.1.0 This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead. deprecate [email protected] › [email protected] › [email protected] › [email protected] › source-map-resolve@^0.5.0 See https://github.com/lydell/source-map-resolve#deprecated deprecate [email protected] › [email protected] › [email protected] › [email protected] › [email protected] › source-map-url@^0.4.0 See https://github.com/lydell/source-map-url#deprecated deprecate [email protected] › [email protected] › [email protected] › [email protected] › [email protected] › resolve-url@^0.2.1 https://github.com/lydell/resolve-url#deprecated deprecate [email protected] › [email protected] › [email protected] › [email protected] › [email protected] › urix@^0.1.0 Please see https://github.com/lydell/urix#deprecated deprecate @vue/[email protected] › apollo-server-express@^3.9.0 The `apollo-server-express` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ formore details. deprecate @vue/[email protected] › subscriptions-transport-ws@^0.11.0 The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md anti semver @vue/[email protected] › [email protected] › @types/[email protected] › @types/express-serve-static-core@^4.17.18 delcares @types/express-serve-static-core@^4.17.18(resolved as 4.17.36) but using ancestor(apollo-server-express)'s dependency @types/[email protected](resolved as 4.17.31) deprecate @vue/[email protected] › [email protected] › apollo-server-types@^3.8.0 The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. deprecate @vue/[email protected] › [email protected] › [email protected] › apollo-server-env@^4.2.1 The `apollo-server-env` package is part of Apollo Server v2 and v3, whichare now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. deprecate @vue/[email protected] › [email protected] › [email protected] › apollo-reporting-protobuf@^3.4.0 The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. deprecate @vue/[email protected] › [email protected] › apollo-server-core@^3.12.1 The `apollo-server-core` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. deprecate @vue/[email protected] › [email protected] › [email protected] › apollo-server-errors@^3.3.1 The `apollo-server-errors` package is part of Apollo Server v2 and v3,which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. deprecate @vue/[email protected] › [email protected] › [email protected] › apollo-datasource@^3.3.2 The `apollo-datasource` package is part of Apollo Server v2 and v3, whichare now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. deprecate @vue/[email protected] › [email protected] › [email protected] › apollo-server-plugin-base@^3.7.2 The `apollo-server-plugin-base` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. Recently updated (since 2023-08-30): 41 packages (detail see file /usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/@vue/cli/node_modules/.recently_updates.txt) 2023-09-05 → [email protected] › @babel/[email protected] › @babel/[email protected] › [email protected] › caniuse-lite@^1.0.30001517(1.0.30001527) (13:47:23) → @vue/[email protected] › [email protected] › @types/[email protected] › @types/connect@*(3.4.36) (00:13:32) 2023-09-04 → [email protected] › @babel/preset-env@^7.10.3(7.22.15) (20:25:28) → [email protected] › [email protected] › @babel/preset-typescript@^7.1.0(7.22.15) (20:25:28) → [email protected] › [email protected] › @babel/preset-flow@^7.0.0(7.22.15) (20:25:13) → [email protected] › [email protected] › @babel/plugin-transform-modules-commonjs@^7.1.0(7.22.15) (20:25:23) → [email protected] › @babel/[email protected] › @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.15(7.22.15) (20:25:03) → [email protected] › @babel/[email protected] › @babel/plugin-transform-async-generator-functions@^7.22.15(7.22.15) (20:25:04) → [email protected] › @babel/[email protected] › @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.15(7.22.15) (20:25:11) → [email protected] › [email protected] › @babel/register@^7.0.0(7.22.15) (20:25:07) → [email protected] › @babel/[email protected] › @babel/helper-validator-option@^7.22.15(7.22.15) (20:25:03) → [email protected] › @babel/[email protected] › @babel/plugin-transform-for-of@^7.22.15(7.22.15) (20:25:06) → [email protected] › @babel/[email protected] › @babel/plugin-transform-optional-chaining@^7.22.15(7.22.15) (20:25:06) → [email protected] › @babel/[email protected] › @babel/plugin-transform-object-rest-spread@^7.22.15(7.22.15) (20:25:18) → [email protected] › @babel/[email protected] › @babel/plugin-transform-classes@^7.22.15(7.22.15) (20:25:18) → [email protected] › @babel/[email protected] › @babel/plugin-transform-destructuring@^7.22.15(7.22.15) (20:25:05) → [email protected] › @babel/[email protected] › @babel/helper-compilation-targets@^7.22.15(7.22.15) (20:25:11) → [email protected] › @babel/[email protected] › @babel/plugin-transform-parameters@^7.22.15(7.22.15) (20:25:06) → [email protected] › @babel/[email protected] › @babel/plugin-transform-block-scoping@^7.22.15(7.22.15) (20:25:05) → [email protected] › @babel/core@^7.10.3(7.22.15) (20:25:28) → [email protected] › [email protected] › @babel/[email protected] › @babel/plugin-transform-typescript@^7.22.15(7.22.15) (20:25:23) → [email protected] › [email protected] › @babel/[email protected] › @babel/helper-create-class-features-plugin@^7.18.6(7.22.15) (20:25:20) → [email protected] › @babel/[email protected] › @babel/[email protected] › @babel/helper-builder-binary-assignment-operator-visitor@^7.22.5(7.22.15) (20:25:17) → [email protected] › @babel/[email protected] › @babel/[email protected] › @babel/helper-create-regexp-features-plugin@^7.22.5(7.22.15) (20:25:02) → [email protected] › @vue/[email protected] › @babel/parser@^7.21.3(7.22.15) (20:25:04) → [email protected] › @babel/[email protected] › @babel/[email protected] › @babel/helper-module-imports@^7.22.5(7.22.15) (20:25:17) → [email protected] › [email protected] › @babel/[email protected] › @babel/helper-module-transforms@^7.22.15(7.22.15) (20:25:20) → [email protected] › @babel/[email protected] › @babel/[email protected] › @babel/helper-validator-identifier@^7.22.5(7.22.15) (20:25:01) → [email protected] › @babel/[email protected] › @babel/[email protected] › @babel/template@^7.22.5(7.22.15) (20:25:18) → [email protected] › [email protected] › @babel/[email protected] › @babel/[email protected] › @babel/helper-member-expression-to-functions@^7.22.15(7.22.15) (20:25:17) → [email protected] › @babel/types@^7.12.12(7.22.15) (20:25:14) → [email protected] › @babel/[email protected] › @babel/generator@^7.22.15(7.22.15) (20:25:17) → [email protected] › @babel/[email protected] › @babel/helpers@^7.22.15(7.22.15) (20:25:23) → [email protected] › @babel/[email protected] › @babel/traverse@^7.22.15(7.22.15) (20:25:22) → [email protected] › @babel/[email protected] › @babel/[email protected] › [email protected] › @babel/runtime@^7.8.4(7.22.15) (20:25:07) 2023-09-03 → @types/[email protected] › @types/[email protected] › @types/node@*(20.5.9) (04:03:08) 2023-09-01 → [email protected] › @babel/[email protected] › @babel/[email protected] › [email protected] › electron-to-chromium@^1.4.477(1.4.508) (14:02:22) 2023-08-31 → @vue/[email protected] › joi@^17.4.0(17.10.1) (23:49:19) → @vue/[email protected] › apollo-server-express@^3.9.0(3.12.1) (05:17:15) → @vue/[email protected] › [email protected] › @types/[email protected] › @types/qs@*(6.9.8) (04:02:08) → @vue/[email protected] › [email protected] › apollo-server-core@^3.12.1(3.12.1) (05:17:12) Run 2 script(s) in 120ms. All packages installed (778 packages installed from npm registry, used 9s(network 9s), speed 4.57MB/s, json 680(8.75MB), tarball 33.58MB, manifests cache hit 0, etag hit 0 / miss 0) [@vue/[email protected]] link /usr/local/node/release/node-v18.16.0-linux-x64/bin/vue@ -> /usr/local/node/release/node-v18.16.0-linux-x64/lib/node_modules/@vue/cli/bin/vue.js [root@JumperServer:zuoyang] # vue -V @vue/cli 5.0.8 [root@JumperServer:zuoyang] #标签:node,vue,入门,package,vuejs3.0,server,脚手架,apollo,7.22 From: https://www.cnblogs.com/zuoyang/p/17681689.html