Skip to content

[Bug]: nexus 3.80.0迁移到kkrepo 1.0.0后,npm命令行无法使用 #288

Description

@chown1988

Summary

如题,nexus 3.80.0迁移到kkrepo 1.0.0后,出现npm命令行无法访问kkrepo,账号是基于openldap的,web能正常登录,请问如何解决?

Steps to reproduce

执行npm login报错
npm login --registry=https://xxx.xxx.xxx/repository/npm-public/
npm warn Unknown user config "home". This will stop working in the next major version of npm. See npm help npmrc for supported config options.
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm. See npm help npmrc for supported config options.
npm notice Log in on https://xxx.xxx.xxx/repository/npm-public/
Username: xxx
Password:
npm error code ECONNRESET
npm error errno ECONNRESET
npm error network Invalid response while trying to fetch https://xxx.xxx.xxx/repository/npm-public/-/user/org.couchdb.user:xxx: aborted
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: /Users/xxx/.npm/_logs/2026-09-09T11_59_30_705Z-debug-0.log

执行pnpm install报错:
[WARN] GET https://xxx.xxx.xxx/repository/npm-public/globals/-/globals-16.3.0.tgz error (ERR_PNPM_FETCH_400). Will retry in 1 minute. 1 retries left.
[WARN] GET https://xxx.xxx.xxx/repository/npm-public/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.2.0.tgz error (ERR_PNPM_FETCH_400). Will retry in 1 minute. 1 retries left.
[WARN] GET https://xxx.xxx.xxx/repository/npm-public/husky/-/husky-9.1.7.tgz error (ERR_PNPM_FETCH_400). Will retry in 1 minute. 1 retries left.
[WARN] GET https://xxx.xxx.xxx/repository/npm-public/@types/node/-/node-24.13.3.tgz error (ERR_PNPM_FETCH_400). Will retry in 1 minute. 1 retries left.
[WARN] GET https://xxx.xxx.xxx/repository/npm-public/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.20.tgz error (ERR_PNPM_FETCH_400). Will retry in 1 minute. 1 retries left.

Expected behavior

预期是web能正常登录、npm login能正常登录、npm install能正常拉依赖包

Actual behavior

目前是web能正常登录,npm login报401状态码,npm install报400状态码

Repository format

npm

kkrepo version or commit

1.0.0

Environment

我是用JVM包部署的kkrepo 1.0.0,mysql版本是8.0.44,kkrepo用的本地文件存储方式

Relevant logs or request details


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions