TinyGPS and hardware serial?

but it shows "tinygps. .there is no file or directory "like errors

We don't deal with paraphrased error messages. They are text. Text can be copied and pasted, really easily.

It sounds, though, like you have not downloaded and properly installed the TinyGPS (or TinyGPS++) library.