I get this error when I type in
npm run dev
npm error Missing script: “dev”
npm error
npm error To see a list of scripts, run:
npm error npm run
here are the scripts that I have in my package.json
“scripts”: {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
I trying adding ‘”dev”: “react-script dev”
chatgpt gave me a bunch of useless commands
I tried npm install
I trying npm init -y which kind of messed up everything so I copied and pasted the initial content of the package.json all over again bc luckily I saved it
I updated the script (lots of vulnerabilities whatsoever)
and nothing worked
amizoldyck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.