We couldn't find the cloudflare tunnel plugin

While attempting to run my Shopify app locally, I am now suddenly getting the following error:

We couldn’t find the cloudflare tunnel plugin

It looks like the Shopify CLI is attempting to connect with the Cloudflare plugin but can’t seem to find the tunnel plugin, for some reason. I have tried with both the following Shopify App and Shopify CLI node library versions: 3.45.1 and 3.45.4

Attempting to run with the following:

pnpm shopify app dev --skip-dependencies-installation --reset --tunnel ngrok

gives me this error:

We couldn’t find the ngrok tunnel plugin

I was getting the same error and adding "@shopify/plugin-cloudflare" dependency helped.

I ended up using ngrok tunnel "@shopify/plugin-ngrok", though