Permission Denied Error After Updating Shopify CLI

Solved

Permission Denied Error After Updating Shopify CLI

abid101
Shopify Partner
1 0 0

Shopify CLI was working normally. Today, I updated shopify CLI, and then when I run shopify app dev, I get 

╭─ error ──────────────────────────────────────────────────────────────────────────────╮
│ │
│ EACCES: permission denied, open │
│ '/usr/local/lib/node_modules/@shopify/cli/bin/cloudflared' │
│ │
│ What to try: │
│ - Run the command again │
│ - Add the flag `--tunnel-url {URL}` to use a custom tunnel URL │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────╯

"cloudflared/" directory doesn't exist.

My Shopify CLI version is 3.67.2.

Any suggestions on how to resolve this issue would be appreciated.

Accepted Solution (1)

rokon
Shopify Partner
8 1 3

This is an accepted solution.

Run the command with ```sudo```. It will get access to your Cloudflared file and will update the URL. After that, you just have to update the "Scopes" and then run again the Shopify command without "Sudo" this time. Hopefully, that will work.

If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin

View solution in original post

Replies 2 (2)

coderzawad
Shopify Partner
1 0 0

I am having the same problem in opensuse tumbleweed 

rokon
Shopify Partner
8 1 3

This is an accepted solution.

Run the command with ```sudo```. It will get access to your Cloudflared file and will update the URL. After that, you just have to update the "Scopes" and then run again the Shopify command without "Sudo" this time. Hopefully, that will work.

If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin