npm config set registry http://repo.nexus.cn/repository/npm-public/
npm config get registry
npm login --auth-type=legacy
[root@localhost ~]# npm login --registry=http://repo.nexus.cn/repository/npm-public/ -u admin -p nexus@A -e admin@example.org
npm WARN invalid config before="admin@example.org" set in command line options
npm WARN invalid config Must be one of: null, valid Date string
npm notice Log in on http://repo.nexus.cn/repository/npm-public/
npm ERR! code ENYI
npm ERR! Web login not supported

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-12-11T05_47_32_619Z-debug-0.log
npm login --auth-type=legacy