Running the project on linux server produces error EACCES


Hi There,
I built the project in a windows machine. But when I try to run it on a linux machine it gives the error 'spawn EACCES. The same project runs flawlessly on the windows machine.

Here’s the exact error:

I tried running the app with sudo npm start and it gives out another error and the app doesn’t even start
Here’s the error after running with sudo

It would be awesome if you could help me with this.

Thank you !


I think that’s access-rights administrative issue.
You could check that by running app as a superuser (which isn’t recommended in production).


Hey @alex,
As I said I tried running the app with sudo as well but it gives another error shared above.


It seems destructuring is failing. Are you sure you are using at least node 8.x?


Yes I am using node 8.1 but it might be the case that Linux is using some other version when run with sudo


You can check that by running sudo node -v, right?


@alex Yes I did and figured that the versions were different.Thank you.