当前位置:网站首页>NPM 安装指定版本包的方法及版本号查看
NPM 安装指定版本包的方法及版本号查看
2022-08-02 05:19:00 【m0_67393413】
在Vue开发过程中,有时候我们需要安装指定版本的包。
例如:安装4.6.1版本的bootstrap
npm install [email protected]

如果后面不带版本号(@4.6.1),那么默认都是安装的最新版本的。不同的包版本号指定方式可能不一样!
例如默认不带版本号安装:
npm install bootstrap

安装的是最新版本的:5.1.3(2022-04-28 时间)
有时候可能因为兼容性或者测试等问题,需要安装早期的版本,以上方法记录下。
查看已经安装的包的版本号:list
npm list bootstrap

查看Vue版本号:
npm list vue

如果多次来回安装某个包,建议在安装前先卸载原来的包,然后在重新安装新包,卸载命令:
npm uninstall bootstrap
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
- 引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
- Cyber Security Learning - Intranet Penetration 4
- Double for loop case (use js jiujiu printing multiplication table)
- selenium + robotframework的运行原理
- C# 编码规范手册
- 软件测试在职2年跳槽4次,你还在怪老板不给你涨薪?
- 提高软件测试能力的方法有哪些?看完这篇文章让你提升一个档次
- 金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
- Leetcode parentheses matching problem -- 32. The longest parentheses effectively
猜你喜欢

51 MCU peripherals: ADC

25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...

There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?

目标检测重要概念——IOU、感受野、空洞卷积、mAP

Shuttle + Alluxio 加速内存Shuffle起飞

虚拟现实房产展示系统提前预见未来装修效果

leetcode-338.比特位计数

eggjs controller层调用controller层解决方案

Deep learning - CNN realizes the recognition of MNIST handwritten digits

oracle 远程连接数据库
随机推荐
Cyber Security Learning - Intranet Penetration 4
网安学习-内网渗透4
Smart people's game improvement: Chapter 3, Lesson 2: "Number of Tongtong" (number)
How to perform concurrent calculation (stability test and stress test)?
About the directory structure of the web application
The virtual reality real estate display system foresees the future decoration effect in advance
回文串求解的进阶方法
zabbix邮件报警和微信报警
Integrate ssm (1)
pytorch常用函数
Common functions of pytorch
Mysql数据库 | 基于Docker搭建Mysql-8.0以上版本主从实例实战
Difference and analysis of CPU usage and load
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
classSR论文阅读笔记
Redis(十一) - 异步优化秒杀
路由规划中级篇
kubernetes 亲和、反亲和、污点、容忍
非关系型数据库MongoDB的特点及安装
C language entry combat (13): decimal number to binary