Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对 email 字段格式的强校验导致一些有历史脏数据的包做 owner 变更的时候报错 #616

Open
baxtergu opened this issue Nov 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@baxtergu
Copy link

npm ERR! code EOWNERMUTATE
npm ERR! Failed to update package: "422 Unprocessable Entity - PUT http://{registry}/@scope%2fpkgName/-rev/835-650b99d780c79608e0864c0e - [INVALID_PARAM] maintainers/1/email: must match format \"email\""

我查了下这个包的 owner 里有一个人的 email 是非法 email 格式。这个严格校验可以放开么,或者有没有办法对元数据中的 maintainer email 做重写。

@baxtergu
Copy link
Author

baxtergu commented Nov 29, 2023

临时解决方案

npm owner rm 有问题用户 @scope/pkg

但是对于只有一个 owner 的来说不行

@fengmk2
Copy link
Member

fengmk2 commented Nov 29, 2023

来个 pr 修复一下。

@fengmk2 fengmk2 added the bug Something isn't working label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants