4

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

5
  • 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, 2019 at 14:10
  • I'll try and edit this comment, I edited my post with a screenshot of "sfdx update" test ! Thanks ;) Feb 21, 2019 at 14:16
  • Well ! It seems to work, thanks ;) Quick and efficient ! Feb 21, 2019 at 14:18
  • 1
    @AlexisMASSON You should mark David's answer as accepted.
    – Jayant Das
    Feb 21, 2019 at 15:22
  • Sorry, didn't see it, working on my project : just did it ! Feb 21, 2019 at 16:55

1 Answer 1

4

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .