Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command hangs on "yarn add" #2780

Closed
unizhu opened this issue Mar 19, 2024 · 4 comments
Closed

Command hangs on "yarn add" #2780

unizhu opened this issue Mar 19, 2024 · 4 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@unizhu
Copy link

unizhu commented Mar 19, 2024

Summary

After upgrading cli to :
@salesforce/cli: Updating CLI from 2.30.8-d9ea14b to 2.32.8-aa146b8... done

Then try to run

sf plugins update
@salesforce/cli: Updating plugins... ⢿ yarn add v1.22.21

The command stops here.

Try to install new plugin still freeze on ⢿ yarn add v1.22.21

CLI Information

{
  "versionDetail": {
    "architecture": "darwin-arm64",
    "cliVersion": "@salesforce/cli/2.32.8",
    "nodeVersion": "node-v20.11.1",
    "osVersion": "Darwin 23.3.0",
    "rootPath": "/Users/uni/.local/share/sf/client/2.32.8-aa146b8",
    "shell": "zsh",
    "pluginVersions": [
      "@oclif/plugin-autocomplete 3.0.12 (core)",
      "@oclif/plugin-commands 3.2.0 (core)",
      "@oclif/plugin-help 6.0.17 (core)",
      "@oclif/plugin-not-found 3.0.14 (core)",
      "@oclif/plugin-plugins 4.3.2 (core)",
      "@oclif/plugin-search 1.0.20 (core)",
      "@oclif/plugin-update 4.2.0 (core)",
      "@oclif/plugin-version 2.0.14 (core)",
      "@oclif/plugin-warn-if-update-available 3.0.13 (core)",
      "@oclif/plugin-which 3.1.3 (core)",
      "@salesforce/cli 2.32.8 (core)",
      "apex 3.0.26 (core)",
      "auth 3.3.21 (core)",
      "data 3.1.7 (core)",
      "deploy-retrieve 3.2.27 (core)",
      "info 3.0.28 (core)",
      "limits 3.1.13 (core)",
      "marketplace 1.0.26 (core)",
      "org 3.4.1 (core)",
      "packaging 2.1.11 (core)",
      "schema 3.1.7 (core)",
      "settings 2.0.31 (core)",
      "sobject 1.1.17 (core)",
      "source 3.1.18 (core)",
      "telemetry 3.1.15 (core)",
      "templates 56.0.21 (core)",
      "trust 3.3.16 (core)",
      "user 3.3.1 (core)",
      "@salesforce/sfdx-scanner 3.22.0 (user)",
      "sfdmu 4.33.4 (user)",
      "sfdx-essentials 2.12.0 (user)",
      "sfdx-git-delta 5.34.0 (user)",
      "sfdx-git-packager 0.3.4 (user)",
      "sfdx-hardis 4.28.4 (user)",
      "texei-sfdx-plugin 2.3.1 (user)"
    ]
  },
  "sfdxEnvVars": [],
  "sfEnvVars": [
    [
      "SF_BINPATH",
      "/Users/uni/.local/share/sf/client/bin/sf"
    ],
    [
      "SF_AUTOUPDATE_DISABLE",
      "true"
    ],
    [
      "SF_DISABLE_AUTOUPDATE",
      "true"
    ],
    [
      "SF_UPDATE_INSTRUCTIONS",
      "Use \"npm update --global @salesforce/cli\" to update npm-based installations."
    ]
  ],
  "cliConfig": {
    "arch": "arm64",
    "bin": "sf",
    "binAliases": [
      "sfdx"
    ],
    "binPath": "/Users/uni/.local/share/sf/client/bin/sf",
    "cacheDir": "/Users/uni/Library/Caches/sf",
    "channel": "stable",
    "configDir": "/Users/uni/.config/sf",
    "dataDir": "/Users/uni/.local/share/sf",
    "debug": 0,
    "dirname": "sf",
    "errlog": "/Users/uni/Library/Caches/sf/error.log",
    "flexibleTaxonomy": true,
    "home": "/Users/uni",
    "isSingleCommandCLI": false,
    "name": "@salesforce/cli",
    "nsisCustomization": "scripts/nsis.nsi",
    "platform": "darwin",
    "root": "/Users/uni/.local/share/sf/client/2.32.8-aa146b8",
    "shell": "zsh",
    "theme": {
      "bin": "blueBright",
      "command": "blueBright",
      "dollarSign": "green",
      "flag": "green",
      "flagDefaultValue": "blueBright",
      "flagOptions": "blueBright",
      "flagRequired": "red",
      "sectionHeader": "blue",
      "topic": "blueBright"
    },
    "topicSeparator": " ",
    "userAgent": "@salesforce/cli/2.32.8 darwin-arm64 node-v20.11.1",
    "valid": true,
    "version": "2.32.8",
    "warned": false,
    "windows": false,
    "_base": "@oclif/core@3.23.0",
    "_commands": {},
    "_topics": {},
    "commandPermutations": {
      "validPermutations": {}
    },
    "pluginLoader": {
      "options": {
        "root": "/Users/uni/.local/share/sf/client/2.32.8-aa146b8/dist"
      },
      "errors": [],
      "plugins": {},
      "pluginsProvided": false
    },
    "topicPermutations": {
      "validPermutations": {}
    },
    "nodeEngine": ">=16.0.0"
  },
  "pluginSpecificData": {
    "@salesforce/plugin-deploy-retrieve": [
      {}
    ]
  },
  "diagnosticResults": [
    {
      "testName": "salesforcedx plugin not installed",
      "status": "pass"
    },
    {
      "testName": "no linked plugins",
      "status": "pass"
    },
    {
      "testName": "[@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion",
      "status": "warn"
    },
    {
      "testName": "using latest or latest-rc CLI version",
      "status": "pass"
    }
  ],
  "suggestions": [
    "Check https://github.com/forcedotcom/cli/issues for CLI issues posted by the community.",
    "Check http://status.salesforce.com for general Salesforce availability and performance.",
    "Neither sourceApiVersion nor apiVersion are defined. The commands that deploy and retrieve source use the max apiVersion of the target org in this case. The issue isn't a problem, as long as it's the behavior you actually want."
  ],
  "logFilePaths": [],
  "commandExitCode": 0
}
@unizhu unizhu added the investigating We're actively investigating this issue label Mar 19, 2024
Copy link

Hello @unizhu 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Mar 19, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added investigating We're actively investigating this issue validated Version information for this issue has been validated and removed more information required Issue requires more information or a response from the customer labels Mar 19, 2024
@unizhu
Copy link
Author

unizhu commented Mar 19, 2024

Here is the --verbose command:

sf plugins install @salesforce/plugin-packaging --verbose --json

Polling for new version(s) to become available on npm... done
Successfully validated digital signature for @salesforce/plugin-packaging.
Finished digital signature check.
/Users/uni/.local/share/sf: /Users/uni/.local/share/sf/client/2.32.8-aa146b8/node_modules/yarn/bin/yarn.js add @salesforce/plugin-packaging@latest --non-interactive --mutex=file:/Users/uni/.local/share/sf/yarn.lock --preferred-cache-folder=/Users/uni/Library/Caches/sf/yarn --check-files --verbose
yarn add v1.22.21
verbose 0.070292792 Checking for configuration file "/Users/uni/.local/share/sf/.npmrc".
verbose 0.070353709 Checking for configuration file "/Users/uni/.npmrc".
verbose 0.070384 Checking for configuration file "/Users/uni/.local/share/sf/client/2.32.8-aa146b8/etc/npmrc".
verbose 0.070411 Checking for configuration file "/Users/uni/.local/share/sf/.npmrc".
verbose 0.070434667 Checking for configuration file "/Users/uni/.local/share/.npmrc".
verbose 0.070481542 Checking for configuration file "/Users/uni/.local/.npmrc".
verbose 0.070539042 Checking for configuration file "/Users/uni/.npmrc".
verbose 0.070559042 Checking for configuration file "/Users/.npmrc".
verbose 0.0707775 Checking for configuration file "/Users/uni/.local/share/sf/.yarnrc".
verbose 0.070829875 Checking for configuration file "/Users/uni/.yarnrc".
verbose 0.070859625 Found configuration file "/Users/uni/.yarnrc".
verbose 0.071003625 Checking for configuration file "/Users/uni/.local/share/sf/client/2.32.8-aa146b8/etc/yarnrc".
verbose 0.071042334 Checking for configuration file "/Users/uni/.local/share/sf/.yarnrc".
verbose 0.071073292 Checking for configuration file "/Users/uni/.local/share/.yarnrc".
verbose 0.0711055 Checking for configuration file "/Users/uni/.local/.yarnrc".
verbose 0.071178834 Checking for configuration file "/Users/uni/.yarnrc".
verbose 0.071223167 Found configuration file "/Users/uni/.yarnrc".
verbose 0.071397209 Checking for configuration file "/Users/.yarnrc".
verbose 0.073072042 current time: 2024-03-19T06:32:27.689Z
Installing plugin packaging@latest... ⣻

Command stops here and no response anymore.

@unizhu
Copy link
Author

unizhu commented Mar 19, 2024

nevermind. The network issue.

@unizhu unizhu closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

1 participant