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
Soundhariyaa MSoundhariyaa M 

I'm not able to create a new project in Visual Studio Code : Starting SFDX: Create Project

This is the Error I get when I try to create a new project "HelloWorldLightningWebComponent" in Visual Studio Code

Starting SFDX: Create Project
14:33:27.962 sfdx force:project:create --projectname HelloWorldLightningWebComponent --outputdir c:\Users\msoundhariya\Desktop\Salesforce --template standard
ERROR running force:project:create:  Command failed with exit code 1: npm root -g --prefix c:\Users\msoundhariya\Desktop\Salesforce\.yo-repository --loglevel error
'npm' is not recognized as an internal or external command,
operable program or batch file.
14:33:29.121 sfdx force:project:create --projectname HelloWorldLightningWebComponent --outputdir c:\Users\msoundhariya\Desktop\Salesforce --template standard
 ended with exit code 1

Could anyone help to resolve this ?!
Thanks in Advance
Best Answer chosen by Soundhariyaa M
SwethaSwetha (Salesforce Developers) 
Also, see the latest today's thread  https://developer.salesforce.com/forums/ForumsMain?id=9062I000000XxP9 wherein Installing NodeJs helped to fix the error.

All Answers

SwethaSwetha (Salesforce Developers) 
HI Soundhariyaa ,
Can you please ensure the path is appropriate in environment variables?Also, can you clarify if you are seeing this message from a long time or just today?

See below links for more information:
https://salesforce.stackexchange.com/questions/304554/npm-is-not-recognized-as-an-internal-or-external-command-vs-code-salesforc

https://stackoverflow.com/questions/59679185/npm-is-not-recognized-as-an-internal-or-external-command-operable-program-or

https://developer.salesforce.com/forums/?id=9062I000000IEleQAG
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.
 
Thank you
 
SwethaSwetha (Salesforce Developers) 
Also, see the latest today's thread  https://developer.salesforce.com/forums/ForumsMain?id=9062I000000XxP9 wherein Installing NodeJs helped to fix the error.
This was selected as the best answer
Soundhariyaa MSoundhariyaa M
Thank you,Swetha