【vue】安装新版本vue-cli:@vue/cli

news/2024/12/22 16:40:59/

前言

  • nodjs v14.16.1 (在Windows系统安装Nodejs、在Linux系统安装Nodejs)

vue-cli 版本

vue-cli 已分为2个版本:

  • @vue/cli,这是新版本(本文安装这版),文档:https://cli.vuejs.org/。
  • vue-cli,这是旧版本,文档:https://github.com/vuejs/vue-cli/tree/v2#vue-cli–.

资源

  • 官方地址:https://cli.vuejs.org/
  • 官方中文地址:https://cli.vuejs.org/zh/index.html
  • GitHub地址:https://github.com/vuejs/vue-cli
  • Gitee镜像地址:https://gitee.com/mirrors/Vue-CLI

安装@vue/cli

cmd> npm install -g @vue/cli
npm WARN deprecated subscriptions-transport-ws@0.9.19: 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 graphql-tools@4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
npm WARN deprecated apollo-cache-control@0.14.0: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details.
npm WARN deprecated apollo-tracing@0.15.0: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
npm WARN deprecated graphql-extensions@0.15.0: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
D:\sde\nodejs\node-v14.16.1-win-x64\vue -> D:\sde\nodejs\node-v14.16.1-win-x64\node_modules\@vue\cli\bin\vue.js> core-js-pure@3.21.1 postinstall D:\sde\nodejs\node-v14.16.1-win-x64\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:
> https://opencollective.com/core-js
> https://patreon.com/zloirock
> https://paypal.me/zloirock
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstczAlso, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)> @apollo/protobufjs@1.2.2 postinstall D:\sde\nodejs\node-v14.16.1-win-x64\node_modules\@vue\cli\node_modules\@apollo\protobufjs
> node scripts/postinstall+ @vue/cli@5.0.4
added 880 packages from 530 contributors in 147.151s

查看版本

cmd> vue --version
@vue/cli 5.0.4

http://www.ppmy.cn/news/494232.html

相关文章

WCF WS-Security and WSE Nonce Authentication【转】

原文:http://weblog.west-wind.com/posts/2012/Nov/24/WCF-WSSecurity-and-WSE-Nonce-Authentication?utm_sourcetuicool&utm_mediumreferral WCF makes it fairly easy to access WS-* Web Services, except when you run into a service format that it does…

vs编译时出现大量ws2def.h的错误的解决方法

 今天新写了一个类,编译之后出现如下大量错误,网上搜了不少资料,最终解决办法是需要添加两个头文件 解决方法:(注意:顺序必须是这样) #include "Winsock2.h" #include "windows.h" 1>recvDataThread.cpp 1>c:\program fil…

路由器刷机常见第三方固件及管理前端种类(OpenWrt、Tomato、DD-Wrt)

目前路由器折腾刷机,除了采用各品牌的原厂固件外,第三方路由器固件,基本就是:Tomato、DD-WRT、OpenWRT三种。 基本上所有第三方路由器固件的架构上可分为前端(Frontend)和后端(Backend&#xff…

Arduino控制1302颗ws2812灯珠显示圣诞树和圣诞老人(附程序源码)

Arduino控制1302颗ws2812灯珠显示圣诞树和圣诞老人 设计者:STCode(公众号同名) 效果直接看视频~ Arduino控制ws2812灯带显示圣诞树和圣诞老人 1)项目介绍 该设计一共需要控制1302颗WS2812颗灯珠,因此供电方面是一个…

华为路由器ws5200虚拟服务器,想处理垃圾路由吗?那就先入手这款华为WS5200路由器吧...

眼看春节假期就要到了,在家里沙发上窝着玩儿吃鸡、打王者荣耀、追剧……,想想都觉得美滋滋! 但是,家中Wi-Fi经常卡顿,无论是打游戏还是看剧,都没有流畅的上网体验,让人非常恼火! 从跳…

一场场网络时代的“墨攻”

编辑:阿冒 设计:沐由 公输般为楚造云梯之械成,将以攻宋。子墨子闻之,起于鲁,行十日十夜,而至于郢,见公输般。 子墨子解带为城,以牒为械,公输般九设攻城之机变&#xff0c…

Flink 学习十 FlinkSQL

Flink 学习十 Flink SQL 1. FlinkSQL 基础概念 flink sql 基于flink core ,使用sql 语义方便快捷的进行结构化数据处理的上层库; 类似理解sparksql 和sparkcore , hive和mapreduce 1.1 工作流程 整体架构和工作流程 数据流,绑定元数据 schema ,注册成catalog 中的表 table …

iOS刘海机型UI适配(X、Xs、Xs Max、Xr)

分辨率 iPhoneX 的分辨率:2436 x 1125px,812 x 375pt iPhoneXs 的分辨率: 2436 x 1125px,pt: 812 x 375pt iPhoneXs Max 的分辨率:2688 x 1242px,pt: 896 x 414pt iPhoneXr 的分辨率:1792 x…