Gruntfile.js

Why I couldn’t “grunt build” but I can run “ionic serve” .
how to get the gruntfile.js?

Have you installed grunt-cli?

npm install -g grunt-cli

yes it shows this.