Try npx serve -s build or create a new terminal session and run serve -s build
After you globally install a new binary, that binary is sometimes not available in your current PATH or terminal session (depends on what OS/shell you are using)
npx is similar to npm exec - which basically lets you exec a binary of a package installed in the current node project.