Lstat /etc/vault/plugins: no such file or directory

I’m trying to register the Vault plugin, but I’m getting an error saying the path doesn’t exist, even though the path already exist:

root@vault ~]# vault plugin register \
> -sha256="${SHA256}" \
> -command="vault-plugin-secrets-oauthapp"

Error registering plugin vault-plugin-secrets-oauthapp: Error making API request.

URL: PUT https://<HOSTNAME>:8200/v1/sys/plugins/catalog/auth/vault-plugin-secrets-oauthapp
Code: 500. Errors:

* 1 error occurred:
        * error while validating the command path: lstat /etc/vault/plugins: no such file or directory