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

Can't run SFDX commands from Command Palette if sfdx is installed via npm #553

Closed
abhisheksaxena7 opened this issue Aug 12, 2018 · 2 comments

Comments

@abhisheksaxena7
Copy link

abhisheksaxena7 commented Aug 12, 2018

Summary

I have the latest version of sfx-cli from downloaded from npm.
I can run all commands successfully in terminal but when I try to use this VSCode extension in the outputs tab I can see it giving me an error

"SFDX CLI not found, install it from ..."

Steps To Reproduce:

  1. Install sfdx-cli from npm.
  2. Try running "SFDX: Open default scratch org"

Expected result

Default Scratch org should be opened

Actual result

On the bottom left in the toolbar I can see the name of default scratch org but when the command is run or when I click on it, nothing happens and output shows "SFDX CLI not found, install it from ..."

Additional information

I uninstalled the npm version of the cli and downloaded it from the standard mac installer and commands started working fine in VSCode which confirms this bug with npm versions of sfdx-cli.

VS Code Version: 1.25

SFDX CLI Version: 6.28.0

OS and version: MacOS Sierra 10.12.6

@vazexqi
Copy link
Contributor

vazexqi commented Aug 13, 2018

I use this frequently so I can confirm that this works. t's likely a set up issue somewhere.

My suspicion is that your PATH in the terminal is different from what you have for VS Code.

Check your terminal path

  1. Open your terminal
  2. Executeecho $PATH. Could you show me the output of that?

Check your VS Code path

  1. In VS Code, Help > Toggle Developer Tools
  2. In the console at the bottom of the screen, could you show me the output of typing in process.env.PATH?

If everything is set up properly, the paths should match and there should be something like the global node_module directory with the npm version of Salesforce CLI installed in the path.

@no-response
Copy link

no-response bot commented Aug 20, 2018

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants