Unable to connect to shop via Shopify CLI

When I try to use shopify theme pull -s to get my store theme for localized development, the console always returns

You are not authorized to use the CLI to develop in the provided store.

You can’t use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store.

If you’re the store owner, then you need to log in to the store directly using the store URL at least once before you log in using Shopify CLI. Logging in to the Shopify admin directly connects the development store with your Shopify login.

I tried to change another account to connect to the store, but the same problem occurred
How can I solve this problem?

Is the store a development store you’ve created from within your partner dashboard? Can you try running shopify auth logout and then try pulling the theme again?

I created it using a staff account. I tried logging out and logging in again, deleting shopify cli and reinstalling it, but none of them worked. However, a new prompt recently appeared, showing that the user terminated the request. I’m still looking for a solution.

Can you pull themes from other stores - just not this one?

No.
I tried to pull the theme with another staff account. But after logging in, it still says “You do not have permission to use the CLI to develop in the provided store.”