Can't run strapi and react concurrently

395 views Asked by At

I was truing to run strapi and react in strapi's public directory concurrently but having problems.

[1] npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR! [email protected] start: `react-scripts start`
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the [email protected] start script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR!     C:\Users\---\AppData\Roaming\npm-cache\_logs\2020-07-20T09_22_38_328Z-debug.log
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR! [email protected] client: `npm start --prefix public`
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the [email protected] client script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR!     C:\Users\---\AppData\Roaming\npm-cache\_logs\2020-07-20T09_22_38_408Z-debug.log
1

There are 1 answers

4
yahms23 On

Is your Strapi app and react-app seperate to each other? If so, there shouldn't be an issue with starting your React app that is not related to Strapi, as Strapi should essentially be your backend while your React-app is front-end. Can your React app run separately fine?