如果我们有个很奇怪的需求,需要安装同一个包的2个版本,我们可以用npm alias来实现

npm i <alias>@npm:<packageName>@版本

# 例子
npm i antd3@npm:antd@3
npm i antd4@npm:antd@4

 

相关文章:

  • 2021-08-06
  • 2021-05-10
  • 2022-02-07
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2021-11-24
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案