When running: npm run shopify version, prompt: running this command will add the dependency to the workspace root rather than the workspace itself
1. When executing the command: npm run Deploy, an error is reported: Upgrade your CLI version to run the Deploy command. Prompt to upgrade the version of the CLI. as shown in Figure 1
wangqiang@desktop-qlpk8qm:/mnt/e/wwwroot/shopify-app/learn-php-app-0605-prod$ npm run deploy
> learn-php-app-ubuntu-2004-0605@1.0.0 Deploy
> Shopify App Deploy
? Make the following changes to your extensions in Shopify Partners?
✔ Yes, Deploy to push changes
Deploying your work to Shopify Partners. It will be part of learn-php-app-0605-prod
Theme_extensions │ running theme check on your theme app extension...
Theme_extensions │ checking /mnt/e/wwwroot/shopify-app/learn-php-app-0605-prod/extensions/theme-app-extension-0612 ...
Theme_extensions │ 4 files inspected, 0 offers detected, 0 offers auto-correctable
╭─ Error ─────────────────────────────────── ────────────────────────────────────
│ │
│ │
│ The Partners GraphQL API Responded Unsuccessfully with the HTTP Status 200 and Errors: │
│ │
│[ │
│ { │
│ "message": "Upgrade your cli version to run the deploy command.", │
│ "locations": [ │
│ { │
│ "line": 3, │
│ "column": 5 │
│ } │
│ ]#atfp_close_translate_span#, │
│ "path":[ │
│ "DeploymentGenerateSignedUploadUrl" │
│ ]#atfp_close_translate_span#, │
│ "extensions": { │
│ "type": "unsupported_client_version" │
│ } │
│ } │
│ ] │
│ │
│ │
│ to investigate the issue, exit this stack trace: │
│ at makeRequest (graphql-request/src/index.ts:441) │
│ Throw New ClientError( │
│ at processTicksandrejections (node:internal/process/task_queues:95) │
│ at async DebugLogResponseInfo (@shopify/cli-kit/src/private/node/api.ts:26) │
│ response = await request │
│ at async graphqlrequest (@shopify/cli-kit/src/public/node/api/graphql.ts:44) │
│ const response = await DebugLogResponseInfo( │
│ at async getExtensionUploadUrl (@shopify/app/src/cli/services/deploy/upload.ts:289) │
│ const result: GenerateSignedUploadURLSchema = await partnersRequest(mutation, token, variables) │
│ at async uploadExtensionsBundle (@shopify/app/src/cli/services/deploy/upload.ts:120) │
│ SignedUrl = await getExtensionUploadURL(options.apiKey, deployUUID) │
│ at task (@shopify/app/src/cli/services/deploy.ts:124) │
│ ;({validationErrors, deployId} = await uploadExtensionsBundle({ │
│ at async runtask (@shopify/cli-kit/src/private/node/ui/components/tasks.tsx:46) │
│ return await task.task(ctx, task) │
│ at async runtasks (@shopify/cli-kit/src/private/node/ui/components/tasks.tsx:80) │
│ const subtasks = await runtask(task, ctx.current) │
│ │
╰───────────────────────────────────── ──────────────────────────────────────
2. When running: npm run Shopify version, prompt: Running this command will add the dependency to the workspace root rather than the workspace itself. as shown in Figure 2
wangqiang@desktop-qlpk8qm:/mnt/e/wwwroot/shopify-app/learn-php-app-0605-prod$ npm run Shopify version > learn-php-app-ubuntu-2004-0605@1.0.0 Shopify > shopify version Current Shopify CLI Version: 3.46.2 💡 Version 3.52.0 available! Run npm run Shopify Upgrade wangqiang@desktop-qlpk8qm:/mnt/e/wwwroot/shopify-app/learn-php-app-0605-prod$ npm run Shopify upgrade > learn-php-app-ubuntu-2004-0605@1.0.0 Shopify > shopify upgrade Upgrading CLI from 3.46.2 to 3.52.0... YARN ADD v1.22.21 Error running this command will add the dependency to the workspace root rather than the workspace itself, which might not be What you want - if you really meant it, make it explain by running this command again --ignore-workspace-root-check). info visithttps://yarnpkg.com/en/docs/cli/addFor documentation about this command. ─ ─ external error - - error coming from `yarn add @shopify/cli@latest @shopify/app@latest --prod` command failed with exit code 1: yarn add @shopify/cli@latest @shopify/app@latest --prod Error running this command will add the dependency to the workspace root rather than the workspace itself, which might not be What you want, make It explain by running this command again with the -w flag (or --ignore-workspace-root-check). YARN ADD v1.22.21 info visithttps://yarnpkg.com/en/docs/cli/addFor documentation about this command. ────────────────────────────────────── ──────────────────────────────────────
3. The final decision to edit directly: package.json.
Before editing:
"dependencies": {
"@shopify/app": "3.46.2",
"@shopify/cli": "3.46.2"
}
After editing:
"dependencies": {
"@shopify/app": "3.52.0",
"@shopify/cli": "3.52.0"
}
4. Execute the command: yarn install, reinstall the dependencies. Check the version again, it is already the latest version. as shown in Figure 3
wangqiang@desktop-qlpk8qm:/mnt/e/wwwroot/shopify-app/learn-php-app-0605-prod$ yarn Shopify version YARN RUN v1.22.15 $ shopify version Current Shopify CLI Version: 3.52.0 Done in 98.23s.


