Deployment has crashed
npm WARN config production Use
--omit=dev
instead.
[email protected] start serve build -n -L -p $PORTsh: 1: serve: not found this is the error on deploy Logs
Solution:Jump to solution
1. if this is a client side rendered app with client side routing, the correct start command would be
serve -s -n -L -p $PORT
(assuming the final build is in a folder called build)
2. if this is not a client side rendered app with client side routing, your current start command is good
3. you need to install serve
for that just run npm i serve
...7 Replies
Project ID:
82badddc-6675-4787-a3d2-3998f3438f41
82badddc-6675-4787-a3d2-3998f3438f41
Solution
1. if this is a client side rendered app with client side routing, the correct start command would be
serve -s -n -L -p $PORT
(assuming the final build is in a folder called build)
2. if this is not a client side rendered app with client side routing, your current start command is good
3. you need to install serve
for that just run npm i serve
it works, ty , for some reason serve had disappeared from the package.json
is this a react scripts app?
yep
then you do need the
-s
flag