function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Urich NOUPIKUrich NOUPIK 

Salesforce CLI installation

I can create a project on my Visual Studio Code editor due to my salesforce CLI installation. When i try verifying it version on the prompt i have this issue:
C:\Users\NOUPIK>sfdx plugins --core
 !    autoupdate:: C:\Users\NOUPIK\AppData\Local\sfdx\update.lock.readers.lock
 !    is locked
 !    C:\Users\NOUPIK\AppData\Local\sfdx\update.lock.readers.lock is locked

How can i solve it? 
Best Answer chosen by Urich NOUPIK
Khan AnasKhan Anas (Salesforce Developers) 
Hi Urich,

Greetings to you!

First, delete all the references to the CLI  and install it again.

Delete all the references to the CLI with the following commands:
sudo rm -rf /usr/local/sfdx
sudo rm -rf /usr/local/lib/sfdx
sudo rm -rf /usr/local/bin/sfdx
sudo rm -rf ~/.local/share/sfdx ~/.config/sfdx ~/.cache/sfdx
sudo rm -rf ~/Library/Caches/sfdx

https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm

And then install it again:
https://developer.salesforce.com/tools/sfdxcli

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Naveen KNNaveen KN
Hi Urich, Try installing all SFDX things in another folder instead of standard root. 

Sample format: C:\Salesforce\Urich

Let us know if this works well. 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Urich,

Greetings to you!

First, delete all the references to the CLI  and install it again.

Delete all the references to the CLI with the following commands:
sudo rm -rf /usr/local/sfdx
sudo rm -rf /usr/local/lib/sfdx
sudo rm -rf /usr/local/bin/sfdx
sudo rm -rf ~/.local/share/sfdx ~/.config/sfdx ~/.cache/sfdx
sudo rm -rf ~/Library/Caches/sfdx

https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm

And then install it again:
https://developer.salesforce.com/tools/sfdxcli

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Urich NOUPIKUrich NOUPIK
Hi Khan, 

Thanks you for help. I uninstall my salesforce CLI installation and reinstall it. After this i can create my project without problem.

Best regard.