After installing the main package as we need it for deploy:
npm i netlify-cli -g
Build the app with this command:
npm run buildCreate a file _redirects in build or dist directory
/* /index.html 200
More info Here
Run this command and follow the instruction in command line
netlify deployIt will ask to login (Only for the first time) and what directory needs to be deployed. In most cases build or dist directory. Depends on your project.
Finally it will give you the link to project