Shopify CLI Error: "Operation Not Permitted" when running 'Shopify theme serve'

christhefree
New Member
1 0 0

I'm having issues trying to use the Shopify CLI to create a development theme. Once I get to running 'Shopify theme serve' I get the following error:

"<internal:dir>:134:in `glob': Operation not permitted - ./Library/Accounts (Errno::EPERM)"

Steps to reproduce

  1. 'Shopify Login' to log into my development store
  2. 'Shopify theme init' to create a new theme
  3. 'Shopify theme serve' to serve the theme
  4. ERROR

This appears to be a separate issue to this one:https://community.shopify.com/c/Technical-Q-A/shopify-theme-serve-not-working-in-Shopify-CLI/m-p/123... as I get the same error message when using my collaborator account (as apposed to a store owner account or staff account as I'm using now).

Please help.

Chris

0 Likes
andrewNet
Tourist
4 0 1

Hello! I was running into this issue too. I finally realized, at least for me:

- My theme was connected to github (as described in the docs here: https://shopify.dev/themes/tools/github)

- But I was on a different branch than the one that was connected to the theme

- Once I switched back to the branch that was connected to the theme, the error went away!

0 Likes