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 

Create project on Visual Studio Code

Hi all,
I have this problem when creating a salesforce project on Visual Studio Code.
"Starting SFDX: Create Project
09:05:21.882 sfdx force:project:create --projectname HelloWorldLightningWebComponent --outputdir c:\Users\NOUPIK\Documents\Salesforce
! 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
09:07:40.290 sfdx force:project:create --projectname HelloWorldLightningWebComponent --outputdir c:\Users\NOUPIK\Documents\Salesforce ended with exit code 1
"

Please i just follow the step on the Create a Hello World Lightning Web Component unit and select "SFDX: Create Project" command on VS Code after install salesforce extension pack corretly. But it look like the project  was not created. What is wrong?
Urich NOUPIKUrich NOUPIK
After some research, it seems that it is my salesforce CLI installation which has a problem because when i try verifying it version on the prompt i have the same 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? 
Ajay K DubediAjay K Dubedi
Hi Urich

Ok don't worry Urich you can follow this step and install this CLI Package in your  VS code IDE

1. Salesforce CLI Integration (https://developer.salesforce.com/tools/sfdxcli)
2. Salesforce extension

When you created first time a folder in VS code than you have followed these step with the command(ctrl+shift+p)
- Make sure you 'Create a project with Manifest' (Not create a  project)
- Authorize an Org (on click this you will give access your org to vs code)
- Retrieve Source in Manifest from Org

Then you can get your Org data in your VS code folder and when you will reopen this Without having to re-authenticate it each time.
If you change anything in your org then you can retrieve your data through a manifest(On click on manifest there are a package.xml file,
open package.xml and then on right click you can retrieve your data).

For more information refer: https://www.youtube.com/watch?v=7qR0c8h5cCU

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi