当前位置:网站首页>npm和yarn 更新依赖包
npm和yarn 更新依赖包
2022-07-27 09:02:00 【温柔的风归功于带笑的你】
npm和yarn更新依赖包到最新版本
npm包的更新速度之快想必大家都了然于心,那么新版本发布后,怎样将依赖包更新到最新版本呢?
批量更新依赖包
①npm更新方式
需要全局安装npm-check-updates,然后执行ncu -u命令,回车后即可开始更新
- npm install npm-check-updates --global
- ncu -u
②yarn更新方式
推荐使用这种更新方式,无需安装依赖。
- yarn upgrade-interactive --latest
检测到需要更新的包后,空格键可以选择或取消单个需要更新的包,A键可以切换所有需要更新的依赖包,最后回车即可更新。
更新单个依赖包
以更新vue到最新版本为例
①npm更新方式
- npm i --save [email protected]
②yarn更新方式
- yarn add [email protected]
边栏推荐
- Interface test tool - JMeter pressure test use
- 03. Use quotation marks to listen for changes in nested values of objects
- Flex layout (actual Xiaomi official website)
- Tensorflow loss function
- Implementation of queue (sequential storage, chain storage)
- “鼓浪屿元宇宙”,能否成为中国文旅产业的“升级样本”
- Intel, squeezed by Samsung and TSMC, finally put down its body to customize chip technology for Chinese chips
- Some practical, commonly used and increasingly efficient kubernetes aliases
- Babbitt | yuan universe daily must read: Guangzhou Nansha released the "Yuan universe nine" measures, and the platform can obtain up to 200million yuan of financial support
- 4279. 笛卡尔树
猜你喜欢

CUDA Programming -03: thread level

Aruba学习笔记10-安全认证-Portal认证(web页面配置)

Restful

4276. 擅长C

Mangodb简单使用

Deep understanding of Kalman filter (3): multidimensional Kalman filter

Intel, squeezed by Samsung and TSMC, finally put down its body to customize chip technology for Chinese chips

Unity3d 2021 software installation package download and installation tutorial

杭州电子商务研究院发布“数字化存在”新名词解释

pollFirst(),pollLast(),peekFirst(),peekLast()
随机推荐
[flutter -- geTx] preparation
Activation functions commonly used in deep learning
4278. 峰会
vscod
一些实用、常用、效率越来越高的 Kubernetes 别名
【Flutter -- GetX】准备篇
NiO Summary - read and understand the whole NiO process
Ctfshow ultimate assessment
691. Cube IV
存储和计算引擎
低成本、低门槛、易部署,4800+万户中小企业数字化转型新选择
【nonebot2】几个简单的机器人模块(一言+彩虹屁+每日60s)
被三星和台积电挤压的Intel终放下身段,为中国芯片定制芯片工艺
Storage and computing engine
易语言编程: 让读屏软件可获取标签控件的文本
4277. 区块反转
3428. Put apples
Interface test tool -postman usage details
NiO example
Sharing of four open source face recognition projects