深圳全飞鸿

标题: Vue的安装 [打印本页]

作者: syant    时间: 2023-8-24 20:48
标题: Vue的安装
Microsoft Windows [版本 10.0.19045.3324]
(c) Microsoft Corporation。保留所有权利。

C:\Users\syant>node -v
v18.17.1

C:\Users\syant>npm -v
9.6.7

C:\Users\syant>npm install webpack -g

added 77 packages in 55s

9 packages are looking for funding
  run `npm fund` for details
npm notice
npm notice New minor version of npm available! 9.6.7 -> 9.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.1
npm notice Run npm install -g npm@9.8.1 to update!
npm notice

C:\Users\syant>npm install -g npm@9.8.1

added 1 package in 6s

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

C:\Users\syant>npm install webpack -g

changed 77 packages in 20s

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

C:\Users\syant>npm install vue-cli -g
npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated consolidate@0.14.5: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

added 233 packages in 1m

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

C:\Users\syant>d:

D:\>cd D:\project.syant\0055Vue\0001helloworld

D:\project.syant\0055Vue\0001helloworld>dir
驱动器 D 中的卷是 新加卷
卷的序列号是 1450-8EC8

D:\project.syant\0055Vue\0001helloworld 的目录

2023/08/24  16:50    <DIR>          .
2023/08/24  16:50    <DIR>          ..
               0 个文件              0 字节
               2 个目录 41,310,650,368 可用字节

D:\project.syant\0055Vue\0001helloworld>vue create vue01

  vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6.
  You may want to run the following to upgrade to Vue CLI 3:

  npm uninstall -g vue-cli
  npm install -g @vue/cli


D:\project.syant\0055Vue\0001helloworld>npm uninstall -g vue-cli

removed 233 packages in 2s

D:\project.syant\0055Vue\0001helloworld> npm install -g @vue/cli
终止批处理操作吗(Y/N)? Y

D:\project.syant\0055Vue\0001helloworld>npm config set registry https://registry.npm.taobao.org

D:\project.syant\0055Vue\0001helloworld> npm install -g @vue/cli
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated apollo-datasource@3.3.2: The `apollo-datasource` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). See https://www.apollographql.com/do ... /previous-versions/ for more details.
npm WARN deprecated 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). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/do ... /previous-versions/ for more details.
npm WARN deprecated 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/do ... /previous-versions/ for more details.
npm WARN deprecated 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/do ... /previous-versions/ for more details.
npm WARN deprecated 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/do ... /previous-versions/ for more details.
npm WARN deprecated apollo-server-env@4.2.1: The `apollo-server-env` 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/utils.fetcher` package. See https://www.apollographql.com/do ... /previous-versions/ for more details.
npm WARN deprecated apollo-server-express@3.12.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/do ... /previous-versions/ for more details.
npm WARN deprecated shortid@2.2.16: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated 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/do ... ptions-transport-ws    For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
npm WARN deprecated apollo-server-core@3.12.0: 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/do ... /previous-versions/ for more details.

added 872 packages in 1m

D:\project.syant\0055Vue\0001helloworld>vue create vue01


Vue CLI v5.0.8
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, Vuex, Linter
? Choose a version of Vue.js that you want to start the project with 3.x
? Use history mode for router? (Requires proper server setup for index fallback in production) No
? Pick a linter / formatter config: Standard
? Pick additional lint features: Lint on save
? 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 v5.0.8
✨  Creating project in D:\project.syant\0055Vue\0001helloworld\vue01.
⚙️  Installing CLI plugins. This might take a while...


added 861 packages in 3m
&#128640;  Invoking generators...
&#128230;  Installing additional dependencies...


added 180 packages in 3m
⚓  Running completion hooks...

&#128196;  Generating README.md...

&#127881;  Successfully created project vue01.
&#128073;  Get started with the following commands:

$ cd vue01
$ npm run serve


D:\project.syant\0055Vue\0001helloworld>vue create vue01


Vue CLI v5.0.8
? Please pick a preset: (Use arrow keys)
> Default ([Vue 3] babel, eslint)
  Default ([Vue 2] babel, eslint)
  Manually select features
D:\project.syant\0055Vue\0001helloworld>

D:\project.syant\0055Vue\0001helloworld>cd ..

D:\project.syant\0055Vue>vue create vue01


Vue CLI v5.0.8
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, Vuex, Linter
? Choose a version of Vue.js that you want to start the project with 3.x
? Use history mode for router? (Requires proper server setup for index fallback in production) No
? Pick a linter / formatter config: Standard
? Pick additional lint features: Lint on save
? 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 v5.0.8
✨  Creating project in D:\project.syant\0055Vue\vue01.
⚙️  Installing CLI plugins. This might take a while...


added 861 packages in 3m
&#128640;  Invoking generators...
&#128230;  Installing additional dependencies...


added 180 packages in 3m
⚓  Running completion hooks...

&#128196;  Generating README.md...

&#127881;  Successfully created project vue01.
&#128073;  Get started with the following commands:

$ cd vue01
$ npm run serve


D:\project.syant\0055Vue>


作者: syant    时间: 2023-8-24 20:53
npm install --legacy-peer-deps element-ui --save
npm install --legacy-peer-deps element-plus --save

http://element-plus.org/zh-CN/
https://element.eleme.cn







欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2