Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while creating an react app #13528

Open
saurabh-jadhav11 opened this issue Feb 27, 2024 · 4 comments
Open

Issue while creating an react app #13528

saurabh-jadhav11 opened this issue Feb 27, 2024 · 4 comments

Comments

@saurabh-jadhav11
Copy link

the showing error
Creating a new React app in C:\Users\ADMIN\Desktop\sucees\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

changed 1491 packages in 2m

253 packages are looking for funding
run npm fund for details
Missing dependencies in package.json

@Sejalkathane
Copy link

same error

@Rohitbadekar-639
Copy link

It seems like you're encountering an issue with missing dependencies after creating a new React app. Here's a step-by-step solution to address this problem:

Check Package.json: First, navigate to your project directory (my-app in your case) and open the package.json file in a text editor.

Verify Dependencies: Inside package.json, there should be a section called "dependencies" listing packages like "react", "react-dom", and "react-scripts". Ensure that these dependencies are properly listed.

Install Dependencies: If any of these dependencies are missing, you can manually install them using npm or yarn. Open your terminal or command prompt, navigate to your project directory, and run:

npm install react react-dom react-scripts

or if you prefer using yarn:
yarn add react react-dom react-scripts

This command will install the necessary dependencies for your React app.

Restart Development Server: After installing the dependencies, restart your development server by running:

npm start

or

yarn start

This will ensure that your React app runs with the newly installed dependencies.

Verify Installation: Once the development server is running without errors, open your web browser and navigate to http://localhost:3000 (or whichever port your app is running on) to see if your React app is working properly.

By following these steps, you should be able to resolve the missing dependencies issue and continue developing your React application. If you encounter any further errors, feel free to ask for more assistance!

@Sejalkathane
Copy link

Sejalkathane commented Mar 9, 2024 via email

@mikizdr
Copy link

mikizdr commented Apr 1, 2024

Nevertheless, it is displayed as in the screenshot below and only the package.json is displayed in the folder, Please solve my Problem

On Sat, Mar 9, 2024 at 6:58 AM Sejal Kathane @.> wrote: Thanks for your support, I hope this will definitely solve my problem. On Fri, Mar 8, 2024 at 9:14 PM Rohit Badekar @.> wrote: > It seems like you're encountering an issue with missing dependencies > after creating a new React app. Here's a step-by-step solution to address > this problem: > > Check Package.json: First, navigate to your project directory (my-app in > your case) and open the package.json file in a text editor. > > Verify Dependencies: Inside package.json, there should be a section > called "dependencies" listing packages like "react", "react-dom", and > "react-scripts". Ensure that these dependencies are properly listed. > > Install Dependencies: If any of these dependencies are missing, you can > manually install them using npm or yarn. Open your terminal or command > prompt, navigate to your project directory, and run: > > npm install react react-dom react-scripts > > or if you prefer using yarn: > yarn add react react-dom react-scripts > > This command will install the necessary dependencies for your React app. > > Restart Development Server: After installing the dependencies, restart > your development server by running: > > npm start > > or > > yarn start > > This will ensure that your React app runs with the newly installed > dependencies. > > Verify Installation: Once the development server is running without > errors, open your web browser and navigate to http://localhost:3000 (or > whichever port your app is running on) to see if your React app is working > properly. > > By following these steps, you should be able to resolve the missing > dependencies issue and continue developing your React application. If you > encounter any further errors, feel free to ask for more assistance! > > — > Reply to this email directly, view it on GitHub > <#13528 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AWMMRSXJ7DKLAIBA7BVTDOLYXHME7AVCNFSM6AAAAABD3PTAF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVHEZDENRVGQ > . > You are receiving this because you commented.Message ID: > @.***> >

Did you try with pnpm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants