一. 场景

我在安装better-scroll2.0没问题,但是在装它的下拉加载更多和上拉刷新插件时报了这个错,如下:
npm安装依赖时报 “xxx is not in the npm registry“错的解决办法之一

二. 解决办法

2.1 输入npm config list 命令查看当前配置情况,如下:
npm安装依赖时报 “xxx is not in the npm registry“错的解决办法之一
2.2 将npm的获取地址从https改为http
npm安装依赖时报 “xxx is not in the npm registry“错的解决办法之一
npm安装依赖时报 “xxx is not in the npm registry“错的解决办法之一
2.3 查看修改后的配置npm config list
npm安装依赖时报 “xxx is not in the npm registry“错的解决办法之一
2.4 重新安装之前装不起的依赖,成功安装
npm安装依赖时报 “xxx is not in the npm registry“错的解决办法之一
(完)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-10-05
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-12-18
相关资源
相似解决方案