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

Unable to install plugin @ind-rcg/modeler-sfdx-cli-plugin #3173

Open
GastonFrancisco opened this issue Jan 10, 2025 · 6 comments
Open

Unable to install plugin @ind-rcg/modeler-sfdx-cli-plugin #3173

GastonFrancisco opened this issue Jan 10, 2025 · 6 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@GastonFrancisco
Copy link

GastonFrancisco commented Jan 10, 2025

Summary
Trying to install plugin @ind-rcg/modeler-sfdx-cli-plugin throws error

Steps To Reproduce
Run command sf plugins install @ind-rcg/modeler-sfdx-cli-plugin and followed these instructions:
https://help.salesforce.com/s/articleView?id=ind.modeler_vscode_installation_prerequisites.htm&type=5

Doctor Diagnosis

{
  "versionDetail": {
    "architecture": "win32-x64",
    "cliVersion": "@salesforce/cli/2.73.1",
    "nodeVersion": "node-v22.12.0",
    "osVersion": "Windows_NT 10.0.22631",
    "rootPath": "C:\\Users\\username\\AppData\\Local\\sf\\client\\2.73.1-f9b06dc",
    "shell": "cmd.exe",
    "pluginVersions": [
      "@oclif/plugin-autocomplete 3.2.16 (core)",
      "@oclif/plugin-commands 4.1.15 (core)",
      "@oclif/plugin-help 6.2.20 (core)",
      "@oclif/plugin-not-found 3.2.33 (core)",
      "@oclif/plugin-plugins 5.4.24 (core)",
      "@oclif/plugin-search 1.2.17 (core)",
      "@oclif/plugin-update 4.6.21 (core)",
      "@oclif/plugin-version 2.2.19 (core)",
      "@oclif/plugin-warn-if-update-available 3.1.29 (core)",
      "@oclif/plugin-which 3.2.23 (core)",
      "@salesforce/cli 2.73.1 (core)",
      "apex 3.6.8 (core)",
      "api 1.3.2 (core)",
      "auth 3.6.85 (core)",
      "custom-metadata 3.3.41 (user)",
      "data 4.0.1 (core)",
      "deploy-retrieve 3.17.1 (core)",
      "dev 2.5.1 (user)",
      "env 3.0.34 (user)",
      "generate 1.0.1 (link) C:\\Users\\username\\Desktop\\salesforce-plugins\\plugin-generate",
      "info 3.4.30 (core)",
      "limits 3.3.43 (core)",
      "marketplace 1.3.7 (core)",
      "org 5.2.16 (core)",
      "packaging 2.9.10 (core)",
      "schema 3.3.45 (core)",
      "settings 2.4.9 (core)",
      "sobject 1.4.48 (core)",
      "telemetry 3.6.29 (core)",
      "templates 56.3.34 (core)",
      "trust 3.7.53 (core)",
      "user 3.6.5 (core)",
      "wordcount 0.1.0 (link) C:\\Users\\username\\Desktop\\salesforce-plugins\\plugin-csv-to-xml-parser"
    ]
  },
  "sfdxEnvVars": [],
  "sfEnvVars": [
    [
      "SF_AUTOUPDATE_DISABLE",
      "true"
    ],
    [
      "SF_BINPATH",
      "C:\\Users\\username\\AppData\\Local\\sf\\client\\bin\\sf"
    ],
    [
      "SF_DISABLE_AUTOUPDATE",
      "true"
    ],
    [
      "SF_UPDATE_INSTRUCTIONS",
      "Use \"npm update --global @salesforce/cli\" to update npm-based installations."
    ]
  ],
  "proxyEnvVars": [],
  "cliConfig": {
    "arch": "x64",
    "bin": "sf",
    "binAliases": [
      "sfdx"
    ],
    "binPath": "C:\\Users\\username\\AppData\\Local\\sf\\client\\bin\\sf",
    "cacheDir": "C:\\Users\\username\\AppData\\Local\\sf",
    "channel": "stable",
    "configDir": "C:\\Users\\username\\AppData\\Local\\sf",
    "dataDir": "C:\\Users\\username\\AppData\\Local\\sf",
    "dirname": "sf",
    "flexibleTaxonomy": true,
    "home": "C:\\Users\\username",
    "isSingleCommandCLI": false,
    "name": "@salesforce/cli",
    "nsisCustomization": "scripts/nsis.nsi",
    "platform": "win32",
    "root": "C:\\Users\\username\\AppData\\Local\\sf\\client\\2.73.1-f9b06dc",
    "shell": "cmd.exe",
    "theme": {
      "bin": "blueBright",
      "command": "blueBright",
      "dollarSign": "green",
      "flag": "green",
      "flagDefaultValue": "blueBright",
      "flagOptions": "blueBright",
      "flagRequired": "red",
      "sectionHeader": "blue",
      "topic": "blueBright",
      "json": {
        "brace": "whiteBright",
        "bracket": "whiteBright",
        "comma": "green",
        "key": "blueBright",
        "string": "greenBright",
        "number": "blue",
        "boolean": "redBright",
        "null": "blackBright"
      }
    },
    "topicSeparator": " ",
    "updateConfig": {
      "node": {
        "options": [
          "--no-deprecation"
        ]
      },
      "s3": {
        "bucket": "dfc-data-production",
        "host": "https://developer.salesforce.com",
        "templates": {
          "target": {
            "baseDir": "<%- bin %>",
            "manifest": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- platform %>-<%- arch %>",
            "unversioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-<%- platform %>-<%- arch %><%- ext %>",
            "versioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>"
          },
          "vanilla": {
            "baseDir": "<%- bin %>",
            "manifest": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %>version",
            "unversioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %><%- ext %>",
            "versioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>"
          }
        }
      }
    },
    "userAgent": "@salesforce/cli/2.73.1 win32-x64 node-v22.12.0",
    "valid": true,
    "version": "2.73.1",
    "warned": false,
    "windows": true,
    "_base": "@oclif/[email protected]",
    "_commands": {},
    "_topics": {},
    "commandPermutations": {
      "validPermutations": {}
    },
    "pluginLoader": {
      "options": {
        "root": "C:\\Users\\username\\AppData\\Local\\sf\\client\\2.73.1-f9b06dc\\dist"
      },
      "errors": [],
      "plugins": {},
      "pluginsProvided": false
    },
    "topicPermutations": {
      "validPermutations": {}
    },
    "nodeEngine": ">=18.6.0"
  },
  "pluginSpecificData": {
    "@salesforce/plugin-deploy-retrieve": [
      {}
    ],
    "@salesforce/plugin-auth": [
      {
        "isUsingGenericKeychain": true,
        "sfCryptoV2Support": false,
        "cryptoVersion": "v1"
      }
    ]
  },
  "diagnosticResults": [
    {
      "testName": "salesforcedx plugin isn’t installed",
      "status": "pass"
    },
    {
      "testName": "you have at least one linked plugin",
      "status": "fail"
    },
    {
      "testName": "[@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion",
      "status": "warn"
    },
    {
      "testName": "[@salesforce/plugin-trust] can ping: https://registry.npmjs.org",
      "status": "pass"
    },
    {
      "testName": "[@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com",
      "status": "pass"
    },
    {
      "testName": "[@salesforce/plugin-trust] can ping: https://registry.npmjs.org/",
      "status": "pass"
    },
    {
      "testName": "using latest or latest-rc CLI version",
      "status": "pass"
    },
    {
      "testName": "can access: https://test.salesforce.com",
      "status": "pass"
    },
    {
      "testName": "can access: https://appexchange.salesforce.com/services/data",
      "status": "pass"
    },
    {
      "testName": "can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest",
      "status": "pass"
    },
    {
      "testName": "[@salesforce/plugin-auth] CLI supports v2 crypto",
      "status": "fail"
    },
    {
      "testName": "[@salesforce/plugin-auth] CLI using stable v1 crypto",
      "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.",
    "Warning: the [wordcount] plugin is linked.",
    "Warning: the [@salesforce/plugin-generate] plugin is linked.",
    "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.",
    "using npm registry https://registry.npmjs.org/ from npm config",
    "Your current installation of Salesforce CLI, including all the plugins you've linked and installed, doesn't yet support v2 crypto. All plugins and libraries must use at least version 6.7.0 of `@salesforce/core` to support v2 crypto. You're generally still able to successfully authenticate with your current CLI installation, but not if you generate a v2 crypto key."
  ],
  "logFilePaths": [],
  "commandExitCode": 0
}

1736546247888-diagnosis.json

@GastonFrancisco GastonFrancisco added the investigating We're actively investigating this issue label Jan 10, 2025
@github-actions github-actions bot added the validated Version information for this issue has been validated label Jan 10, 2025
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.

@iowillhoit
Copy link
Contributor

Hey @GastonFrancisco, what is the error message? I can install it without issue.

Image

@GastonFrancisco
Copy link
Author

Would you like the whole log or just the part where it starts throwing errors?

@iowillhoit
Copy link
Contributor

The whole log would be ideal. It can help debug certain things with your install

@GastonFrancisco
Copy link
Author

Here it goes! Thanks for helping me out

2025-01-10T21_30_06_140Z-debug-0.log

@iowillhoit
Copy link
Contributor

Thanks @GastonFrancisco! So based on the debug logs, it looks like node-gyp is throwing errors.

There are several bullet points on the documentation you shared about node-gyp setup and errors. For example:

  • To automatically install Python and Microsoft Build Tools, ensure that you select the Automatically install the necessary tools checkbox.
  • Based on the version of Microsoft Build Tools that was installed during the Node.js installation, set the environment variable VCTargetsPath. [...]
  • If you installed Visual Studio Build Tools 2017 and you get node-gyp errors during the CLI installation, install Windows 8.1 SDK by using Visual Studio Installer.
  • If you installed multiple Microsoft Build Tools, make sure that the correct versions are used by node-gyp. You can modify the .npmrc file to make node-gyp use the version of the build tools specified in VCTargetsPath. [...]

I would carefully review those docs and make sure your environment is set up correctly. Unfortunately, the CLI Team does not own this plugin so we will not be much help beyond that.

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

2 participants