1
votes

I have created App using create-react-app and npx create-react-app my-app,create-react-app my-app --use-npm and many other possible options available on the internet. But i am getting the below message after project creation "Missing dependencies in package.json" and when i try to start the app using npm start entering the app folder i get the below error.

D:\ReactNative\ReactApplication\my-app1>npm start npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:

Contents of the Package.json file created in App folder is as mentioned below

{ "name": "my-app1", "version": "0.1.0", "private": true }

Do let me know how to make React work on my System

System and other details mentioned below. OS: Windows10 Node: v12.14.0 npm: 6.13.4

Regards, Nitesh

2
can you post the pull packege.json file? - Ion
the package.json content is alraedy shown for app my-app1. { "name": "my-app1", "version": "0.1.0", "private": true } - Nitesh Kumar

2 Answers

0
votes

Just delete the old project folder and install a new one.

npx create-react-app my-app
cd my-app
npm start

OR run below command in the project directory, because the app isn't installed completely. Recommended to Install new like above example

npm install
0
votes

Delete C:\Users\Administrator\AppData\Roaming next npm-cache and npm, reinstall and create scaffold to solve the problem