Sfdx-git-delta: Addon Compatibility with Windows Salesforce CLI

Created on 19 Jan 2021  Â·  4Comments  Â·  Source: scolladon/sfdx-git-delta

Issue verification check :

[] Is current package working in Salesforce CLI within windows?

What is the problem

I have installed the latest version of SFDX from below URL:
https://developer.salesforce.com/tools/sfdxcli

But it shows latest node version as v12.18.3:
sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3

I separately installed nodeJS latest version globally. Then also Salesforce CLI refers the node-v12.18.3, which is available under the Salesforce CLI folder.

Any workaround or suggestion will be helpful to us. So, we can use the addon in windows Salesforce CLI.


_(Write your answer here.)_

What is parameter and their value you used

_(Write your answer here.)_

What is the expected result

_(Write your answer here.)_

What is the actual result

_(Write your answer here.)_

Steps to reproduce


_(Write your answer here.)_

Execution context


Operating System: …

Yarn version: …

Node version: …

sgd version: …

SDK Version: …

Optional more information


_(Write your answer here.)_

bug

Most helpful comment

Thanks for the tip @mehdisfdc ! I was having the same issue. Completely uninstalling the Windows version and the npm version, then reinstalling only via npm resovled the issue for me.

All 4 comments

Hi @ashishshukla38 !

If I understand well, executin the CLI sfdx on windows seems to use the inner sfdx node installation (v12) instead of the node version installed in the local machine even if there is a local node version installed on the machine right ?

If then, it looks like an issue with the CLI itself...

Could you fill the PR with Execution context information please ?

This looks like a duplicate of https://github.com/scolladon/sfdx-git-delta/issues/85

Node v14.6.0 or above is required for the SGD plugin.

The current Salesforce CLI installer comes with node v12, which cannot be used with SGD. So, until the Salesforce CLI is upgraded with a more recent version of node, you will have to install the Salesforce CLI via npm.

This means that you should be able to solve your issue by:

  1. Uninstalling the Salesforce CLI
  2. Re-installing via npm (rather than with another installer): https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli_npm

Thanks a lot @scolladon and @mehdisfdc for your quick response. We will try the following steps mentioned by @mehdisfdc .

Thanks for the tip @mehdisfdc ! I was having the same issue. Completely uninstalling the Windows version and the npm version, then reinstalling only via npm resovled the issue for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertoamd90 picture robertoamd90  Â·  4Comments

RichardBeadle picture RichardBeadle  Â·  6Comments

arafesthain picture arafesthain  Â·  7Comments

nickytorstensson picture nickytorstensson  Â·  6Comments

struthe picture struthe  Â·  3Comments