从零开始学VUE之Vue CLI(全局安装 CLI)

2021-07-01 15:44:45 浏览数 (2)

全局安装 cli

代码语言:javascript复制
npm install @vue/cli -g

执行安装

代码语言:javascript复制
C:Usersext.zhangyugen1>npm install @vue/cli -g
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
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 resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
C:Usersext.zhangyugen1AppDataRoamingnpmvue -> C:Usersext.zhangyugen1AppDataRoamingnpmnode_modules@vueclibinvue.js

> core-js-pure@3.14.0 postinstall C:Usersext.zhangyugen1AppDataRoamingnpmnode_modules@vueclinode_modulescore-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> @apollo/protobufjs@1.2.2 postinstall C:Usersext.zhangyugen1AppDataRoamingnpmnode_modules@vueclinode_modules@apolloprotobufjs
> node scripts/postinstall


> ejs@2.7.4 postinstall C:Usersext.zhangyugen1AppDataRoamingnpmnode_modules@vueclinode_modulesejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

  @vue/cli@4.5.13
added 933 packages from 584 contributors in 186.993s

查看版本

代码语言:javascript复制
C:Usersext.zhangyugen1>vue --version
@vue/cli 4.5.13

C:Usersext.zhangyugen1>

视屏安装的是 3.x 现在最新的是4.x了

作者:彼岸舞

时间:2021628

内容关于:VUE

本文属于作者原创,未经允许,禁止转发

cli

0 人点赞