1. 查看模块有哪些版本号:npm view 模块名 versions

如果没有需要的版本,可以尝试切换npm库:

npm config get registry  // 获取当前 npm 库
npm config set registry https://registry.npm.taobao.org/(淘宝镜像源)
2. 先卸载模块:npm uninstall 模块名
3. 安装模块指定版本:npm i 模块名@版本号

npm不同后缀安装模式的区别

相关文章:

  • 2022-12-23
  • 2021-06-30
  • 2021-11-19
  • 2021-11-21
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-08-17
相关资源
相似解决方案