我的包名称中有一个特殊字符 ( @
),当尝试使用命令行界面删除版本时,它会引发验证错误。有没有办法在不改变包名的情况下解决这个问题?我试过分隔斜线并用引号(单引号和双引号)包围包名称,但没有运气。
我试过的:
aws codeartifact delete-package-versions --domain my-domain --repo npm-store --format npm --package @org/some-package-name --versions 0.5.1 0.3.1
来自 CLI 的错误:
An error occurred (ValidationException) when calling the DeletePackageVersions operation: 1 validation error detected: Value '@org/some-package-name' at 'packageName' failed to satisfy constraint: Member must satisfy regular expression pattern: [^!#/\s]+