Shopify-api : How do you add the environment variable SHOPIFY_CLI_STACKTRACE=1?

标签 shopify shopify-app

所以我尝试使用 shopify api 和以下命令创建一个 shopify php 应用程序:

shopify 应用创建 php

但失败了,返回了以下错误消息:

An unexpected error occured.
To submit an issue include the stack trace.
To print the stack trace, add the environment variable SHOPIFY_CLI_STACKTRACE=1.

除此之外什么也没有。这是没用的,因为我不知道我的命令或系统有什么问题需要修复,所以我尝试了这个:

shopify app create php SHOPIFY_CLI_STACKTRACE=1 或此 shopify app create php --SHOPIFY_CLI_STACKTRACE=1

但仍然看到相同的错误消息,没有任何进一步的信息。也许上面的环境变量应该添加到其他地方,而不是cli命令?另外,我无法创建 php 应用程序,但创建 Node 应用程序完全没问题,如果你知道为什么,请告诉我。

非常感谢任何帮助,谢谢!

最佳答案

您应该按照以下步骤操作:

第 1 步:

安装

https://rubyinstaller.org/downloads/

https://git-scm.com/downloads

第 2 步:

  1. 右键单击我的电脑此电脑,然后选择属性
  2. 左键单击高级系统设置
  3. 点击/打开高级选项卡
  4. 点击环境变量
  5. 在“[用户名]的用户变量”下点击“新建”
  6. 然后在“变量名称”中输入 SHOPIFY_CLI_STACKTRACE
  7. 然后在“变量值”上输入 1
  8. 在“系统变量”下执行与 6 和 7 相同的操作 第 3 步使用 cmd 键入或复制并粘贴以下文本:(来源: https://shopify.dev/themes/tools/cli )

gem 安装 shopify-cli

gem 安装 wdm

关于Shopify-api : How do you add the environment variable SHOPIFY_CLI_STACKTRACE=1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70043228/

相关文章:

ruby - Shopify 液体模板调试

handlebars.js - 调用特定的 custom_field BigCommerce 模板

shopify - 如何在 shopify 产品页面上添加自定义文本框字段

formatting - .liquid-file(Shopify 主题文件)的自动格式化

shopify - 使用 Shopify API 计算总销售额

Shopify 应用程序 : Any event for detecting change of theme or make theme sections persist even after theme changes?

php - 如何根据新的分页更新解析shopify分页链接字符串?

shopify - 有关 customer/data_request webhooks 的一般问题

javascript - 使用 Shopify Admin API 创建产品

javascript - 从事件类中获取值并假设为另一个