1. 程式人生 > 其它 >從零開始學VUE之Vue CLI(全域性安裝 CLI)

從零開始學VUE之Vue CLI(全域性安裝 CLI)

全域性安裝 cli

npm install @vue/cli -g

執行安裝

C:\Users\ext.zhangyugen1>npm install @vue/cli -g
npm WARN deprecated @hapi/[email protected]: 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/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi
/[email protected]: Moved to 'npm install @sideway/address' npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained npm WARN deprecated har
[email protected]: 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 [email protected]: https://
github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated C:\Users\ext.zhangyugen1\AppData\Roaming\npm\vue -> C:\Users\ext.zhangyugen1\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js > [email protected] postinstall C:\Users\ext.zhangyugen1\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\core-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/[email protected] postinstall C:\Users\ext.zhangyugen1\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@apollo\protobufjs > node scripts/postinstall > [email protected] postinstall C:\Users\ext.zhangyugen1\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\ejs > node ./postinstall.js Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/) + @vue/[email protected] added 933 packages from 584 contributors in 186.993s

檢視版本

C:\Users\ext.zhangyugen1>vue --version
@vue/cli 4.5.13

C:\Users\ext.zhangyugen1>

視屏安裝的是 3.x 現在最新的是4.x了

作者:彼岸舞

時間:2021\06\28

內容關於:VUE

本文屬於作者原創,未經允許,禁止轉發