Open1

【備忘録】Shopify CLIにログインできないエラー

marigottenmarigotten

開発環境構築

色々インストール&バージョン合わせ

エラー内容

Terminal
shopify theme serve

┏━━Error━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ 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 (for example, using dawn-hands-
on.myshopify.com/admin) before you log in using Shopify CLI. Logging in to 
the Shopify admin directly connects the development store with your Shopify 
login.
┃ 
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

解決方法

  • Shopify, Shopify Partnersからログアウト
  • 再度ログイン
  • Shopify IDを作成
  • ターミナル上で再度shopify login --store XXXXXXX
  • Shopify CLI認証
  • shopify theme serve
  • 成功!

#リファレンス
https://github.com/Shopify/shopify-cli/issues/1361