1. When running: yarn shopify app generate extension, an error occurred: error Couldn’t find a package.json file in “E:\\wwwroot\\shopify-theme-app-extension\\20221012”
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. See Figure 1.

Plaintext
PS E:\wwwroot\shopify-theme-app-extension\20221012> yarn shopify app generate extension
yarn run v1.22.15
error Couldn't find a package.json file in "E:\\wwwroot\\shopify-theme-app-extension\\20221012"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2. Reference: https://classic.yarnpkg.com/en/docs/cli/init . Interactively create or update a package.json file. Run: yarn init. See Figure 2.

Plaintext
PS E:\wwwroot\shopify-theme-app-extension\20221012> yarn init
yarn init v1.22.15
question name (20221012):
question version (1.0.0):
question description: 20221012
question entry point (index.js):
question repository url:
question author: Qiang Wang
question license (MIT):
question private:
success Saved package.json
Done in 39.35s.
3. View the generated package.json file.
JSON
{
"name": "20221012",
"version": "1.0.0",
"description": "20221012",
"main": "index.js",
"author": "Qiang Wang",
"license": "MIT"
}
4. The error: error Couldn’t find a package.json file has disappeared.
Plaintext
PS E:\wwwroot\shopify-theme-app-extension\20221012> yarn shopify app generate extension
yarn run v1.22.15
error Command "shopify" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
5. Reference: Building a theme app extension with Shopify CLI.
