Skip to content

私有仓库 npm、yarn 找不到包问题

考虑以下

  1. 用户是否登录
    npm login
  2. 若仓库证书存在 ssl 问题
    shell
    // .npmrc 配置
    always-auth=true // 始终验证
    strict-ssl=false // 关闭严格 ssl 验证
    // .yarnrc
    strict-ssl false
  3. 注册源是否正确
    shell
    registry=https://xxx/xx/x

Released under the MIT License.