Error CouldnT find a package.json file in “E:\\wwwroot\\shopify-theme-app-extension\\20221012” info visithttps://yarnpkg.com/en/docs/cli/runFor documentation about this command.
1. Execute: When YARN Shopify App Generate Extension, an error is reported: ERROR COULDNT find a package.json file in “E:\\wwwroot\\shopify-theme-app-extension\\20221012”
info visithttps://yarnpkg.com/en/docs/cli/runfor documentation about this command. as shown in Figure 1
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. Create or update the package.json file interactively. Execute: yarn init. as shown in Figure 2
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
{
"name": "20221012",
"version": "1.0.0",
"description": "20221012",
"main": "index.js",
"author": "Qiang Wang",
"license": "MIT"
}
4. Error: Error Couldnt find a package.json file has disappeared.
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: Use Shopify CLI to build the theme application extension:https://www.shuijingwanwq.com/2022/10/25/7106/。

