React scripts fails while i run concurrently with nodemon

爷,独闯天下 提交于 2021-02-10 06:24:10

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!