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

npm start isn't working #12702

Closed
Numanpaf885 opened this issue Sep 2, 2022 · 4 comments
Closed

npm start isn't working #12702

Numanpaf885 opened this issue Sep 2, 2022 · 4 comments

Comments

@Numanpaf885
Copy link

Numanpaf885 commented Sep 2, 2022

hi there i am a begginer coding and i was creating a create-react-app all was OK but when i tried to run npm start it gives me this error:

npm ERR!
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\npm-cache\_logs\2022-08-22T15_25_54_912Z-debug-0.log

here is a screenshot it maybe more helpfull
Captura de pantalla (42)

and i tried to run npx expo start and it returned me this:Captura de pantalla (43)

here is the package.json:
Captura de pantalla (44)

can anyone please help me

@Vishal1297
Copy link

Hello @Numanpaf885,

npm start is not working because you have to mention scripts in your package.json file.

image

@Numanpaf885
Copy link
Author

ad how I do that?

@Vishal1297
Copy link

@Numanpaf885

Add scripts block in your package.json file.

"scripts": {
    "start": "react-scripts start",
    "build": "CI=false && react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  }

For this to work, you need a dependency named react-scripts

Install it using npm command otherwise you are good to go and refer documentation to clear your doubts.

npm i react-scripts

in your terminal or command prompt depending on OS.

@Numanpaf885
Copy link
Author

Numanpaf885 commented Sep 7, 2022

thankyou very much it worked!!

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

2 participants