问题
When i run npm start
the above error occurs.
my script in package.json:
"start": "concurrently \"nodemon server\" \"react-scripts start\"",
Any help will be great !
回答1:
One of the ways you can do is (You can amend it accordingly) :
"server": "nodemon index.js",
"react": "react-scripts start"
"dev": "concurrently \"npm run server \" \"npm run react\" "
And then do npm run dev
You can read more about concurrently here
来源:https://stackoverflow.com/questions/49818438/react-scripts-fails-while-i-run-concurrently-with-nodemon