How to create React project using command prompt?
solution :- Firstly install node js, npm and VS Code in your system
Step 1:- Open command prompt and for create project write npx create-next-app
Step 2:- Now it will say to write your Project name.
Step 3 :- Now write your project name as per your choice.
Step 4 :- Now it will ask what is your needs to create a project
√ What is your project named? … my-first-react-app
√ Would you like to use TypeScript? … No / Yes
√ Would you like to use ESLint? … No / Yes
√ Would you like to use Tailwind CSS? … No / Yes
√ Would you like to use src/
directory? … No / Yes
√ Would you like to use App Router? (recommended) … No / Yes
? Would you like to customize the default import alias (@/*)? » No / Yes
then if you want you can select Yes and if you don’t want then select NO like this
Step 5 :- Now you can see dependencies are Installed as shown in below image
Step 6 :- Now use this command for change the directory
Step 7 :- Now you can see below directory is changed
Step 8 :- Now for open the project in Vs code use this command code .
Step 9 :- Now you can see your project is directly opened in Visual Studio Code
Leave a Reply