1

I am running into an error when I am trying to update my SFDX version in my cli and I am unsure what it means.

Olivias-MacBook-Pro:test op$ sfdx update ›
Warning: Use "npm update --global sfdx-cli" to update npm-based installations. sfdx-cli: Updating CLI... not updatable warning "salesforcedx > force-language-services > @salesforce/command > @oclif/command@1.5.17" has unmet peer dependency "@oclif/config@^1". sfdx-cli: Updating plugins... done

When I run any SFDX command I get the message:

› Warning: sfdx-cli update available from 7.1.4 to 7.8.1.

What is this peer dependency? @oclif/config@^1

Any help in updating my SFDX version would be greatly appreciated!

0

1 Answer 1

9

The documentation states:

If You Installed the Salesforce CLI Using the Installer

To install the latest Salesforce CLI version, run:

sfdx update

If You Installed the Salesforce CLI Using npm

The auto-update option is not available. To update the Salesforce CLI using npm, run:

npm install --global sfdx-cli

Seems like you have installed the CLI on you mac from npm, also the warning message suggests to use npm install --global sfdx-cli, could you maybe try that.

2
  • 1
    I did try this but was rejected due to permissions. When I attempted to do sudo npm install --global sfdx-cli a lot of the package update was still permissions denied Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/sfdx-cli/node_modules/dtrace-provider/compile.py' -> '/usr/local/lib/node_modules/sfdx-cli/node_modules/dtrace-provider/binding.gyp' It looks like the sfdx was updated after that run but I am concerned about a lot of the permission denied messages....
    – Olivia
    Jul 23, 2019 at 15:30
  • Would be wiser to reinstalling sfdx cli
    – Raul
    Jul 23, 2019 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.