使用Artifactory的patch-package
原文英文,约100词,阅读约需1分钟。发表于: 。yarn patch-package packagename fails with 401 Unauthorized, npm run patch-package doesn't help either. This usually happens when your company self-hosts packages, in our case with JFrog...
使用yarn patch-package时出现401 Unauthorized错误,通常是由于公司自托管的包(如JFrog artifactory)导致的。即使命令行已配置身份令牌,也可以尝试使用npx patch-package packagename来解决此问题。