标题: 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
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
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...
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...