Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React serve -s build, The term 'serve' is not recognized as the name of a cmdlet

Hello I am trying to build my react app so I did yarn build and it created the necessary folder now I am trying to do serve -s build and it's telling me the error below

Error

** I have tried to uninstall and reinstall serve by npm uninstall -g serve and npm install -g serve and I found the serve folder in C:\Users\Nairi\AppData\Roaming\npm\node_modules

like image 789
Altro Avatar asked Aug 14 '20 14:08

Altro


1 Answers

Try npx serve -s build I don't know why but they happened to me also and this worked

like image 129
Nairi Areg Hatspanyan Avatar answered Sep 28 '22 09:09

Nairi Areg Hatspanyan