I'm getting the following error when trying to access the sfdx command :

enter image description here

Does any one know what's happening ? I can't find anything here nor on the internet..

I tried re-installing the CLI + rebooting my PC, but it still persists.

EDIT : I tried sfdx update -->

enter image description here

  • 1
    Looks like an update operation failed or got stuck and didn't remove its lock file. If you manually delete update.lock in the directory shown, does the issue resolve? – David Reed Feb 21 '19 at 14:10
  • I'll try and edit this comment, I edited my post with a screenshot of "sfdx update" test ! Thanks ;) – Alexis MASSON Feb 21 '19 at 14:16
  • Well ! It seems to work, thanks ;) Quick and efficient ! – Alexis MASSON Feb 21 '19 at 14:18
  • 1
    @AlexisMASSON You should mark David's answer as accepted. – Jayant Das Feb 21 '19 at 15:22
  • Sorry, didn't see it, working on my project : just did it ! – Alexis MASSON Feb 21 '19 at 16:55

Sometimes processes fail unexpectedly and leave behind lock files. In most cases you should be able to manually remove the file by navigating to your local AppData folder (the file will live elsewhere on other operating systems) and deleting it from your file manager.

Sounds like you've been able to resolve this issue just by removing update.lock.

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.