0

I have a react project which works fine on my desktop running "npm start" but after copying the directory to the server (server os is CentOS), when running "npm start" I get this error:

enter image description here

Is there something I need to configure for it to run on the server?

Thanks in advance

sir-haver
  • 2,084
  • 5
  • 26
  • 64
  • This question has been answered [here](https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle) – Kevin H Jun 11 '19 at 13:44
  • Thanks Mercurius, it seemed to me like a different problem at first, but I will try to follow the suggested solutions there and report back thanks – sir-haver Jun 11 '19 at 13:47

1 Answers1

0

Try to remove the node_modules folder, and run npm install again.

Tamas Szoke
  • 4,679
  • 3
  • 23
  • 34