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

SF CLI plugin installation error (Node version) #2550

Closed
RupertBarrow opened this issue Nov 1, 2023 · 3 comments
Closed

SF CLI plugin installation error (Node version) #2550

RupertBarrow opened this issue Nov 1, 2023 · 3 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@RupertBarrow
Copy link

RupertBarrow commented Nov 1, 2023

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

"sf plugins:install" is using the wrong version of Node

Steps To Reproduce

This complains about the wrong version of node being used

Expected result

This should install the plugin

Actual result

% sf plugins:install https://github.com/RupertBarrow/rapido-sf-plugin#release
? This plugin isn't signed by Salesforce. Only install the plugin if you trust its creator. Do you want to continue the installation?, Yes
Because you approved this plugin, you can avoid future installation confirmations by adding the plugin to the unsignedPluginAllowList.json file. For details, see https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_allowlist.htm.
Installing plugin https://github.com/RupertBarrow/rapido-sf-plugin#release... ⣽
Installing plugin https://github.com/RupertBarrow/rapido-sf-plugin#release... ⣷ [2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^18.17 || >=20.6.1". Got "18.15.0"
Installing plugin https://github.com/RupertBarrow/rapido-sf-plugin#release... failed
    Error: /Users/rupert/.local/share/sf/client/2.14.6-1f2724e/node_modules/yarn/bin/yarn.js add https://github.com/RupertBarrow/rapido-sf-plugin#release --non-interactive --mutex=file:/Users/rupert/.local/share/sf/yarn.lock --preferred-cache-folder=/Users/rupert/Library/Caches/sf/yarn --check-files exited with code 1

% node -v
v18.17.0

System Information

{
  "architecture": "darwin-x64",
  "cliVersion": "@salesforce/cli/2.14.6",
  "nodeVersion": "node-v18.15.0",
  "osVersion": "Darwin 21.6.0",
  "rootPath": "/Users/rupert/.local/share/sf/client/2.14.6-1f2724e",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.3.10 (core)",
    "@oclif/plugin-commands 3.0.3 (core)",
    "@oclif/plugin-help 6.0.3 (core)",
    "@oclif/plugin-not-found 3.0.2 (core)",
    "@oclif/plugin-plugins 3.9.2 (core)",
    "@oclif/plugin-search 1.0.3 (core)",
    "@oclif/plugin-update 4.1.2 (core)",
    "@oclif/plugin-version 2.0.3 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.1 (core)",
    "@oclif/plugin-which 3.0.5 (core)",
    "@salesforce/cli 2.14.6 (core)",
    "apex 2.3.20 (core)",
    "auth 2.8.22 (core)",
    "data 2.5.19 (core)",
    "deploy-retrieve 1.19.2 (core)",
    "dev 1.3.2 (user)",
    "info 2.6.49 (core)",
    "limits 2.3.39 (core)",
    "login 1.2.37 (core)",
    "marketplace 0.3.0 (core)",
    "org 2.11.4 (core)",
    "schema 2.3.30 (core)",
    "settings 1.4.35 (core)",
    "sobject 0.2.13 (core)",
    "source 2.10.43 (core)",
    "telemetry 2.3.6 (core)",
    "templates 55.5.14 (core)",
    "trust 2.6.20 (core)",
    "user 2.3.37 (core)"
  ]
}

Additional information

This plugin includes an OS/system-dependent module.
I am trying to install in is the SF CLI on the same system as the one I'm developing on.

@RupertBarrow RupertBarrow added the investigating We're actively investigating this issue label Nov 1, 2023
@github-actions github-actions bot added the validated Version information for this issue has been validated label Nov 1, 2023
Copy link

github-actions bot commented Nov 1, 2023

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.

@cristiand391
Copy link
Member

@RupertBarrow macos/win installer and tarballs include their own node binary, only npm installs will use the global node binary.

@RupertBarrow
Copy link
Author

RupertBarrow commented Nov 1, 2023

@cristiand391 Thanks for the answer !

  1. where is the binary installed ?
  2. does the Docker image also include its own node binary ?
  3. maybe this should be mentioned in the installation doc; you should also point out in the docs which version of node is installed

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