I'm going to agree with both
@Jam86 and
@xSuperMario64x. I worked for several years as a dog trainer and there are multiple ways to teach a puppy to stop biting. Some methods will work better than others depending on the dog and how interested they are in biting.
1. Give a high-pitched yelp like one of their littermates would do to signal pain. This can excite some puppies, but it's worth a try to see if it works for yours.
2. Don't react. Stay very still so your puppy realizes you're not playing at all and when they stop biting and look up at you, take the opportunity to praise and treat them. Add in a cue word of your choice that means no biting so they start to learn to stop on command.
3. Keep a toy that your puppy is allowed to bite nearby and basically do an exchange. Take back your hand or whatever your puppy is biting and replace it with the toy so your puppy learns what is and is not acceptable to bite.
4. If the biting is really bad and your puppy is not learning or it's hurting you too much, get up and walk away. If you were playing with your puppy, play time is over for at least a few minutes to let them calm down. Don't leave your puppy unattended in an area where they can get in trouble, but if you have a spot gated off for them, step out of their reach. If you have a crate, you can put them in the crate for a minute or two. It doesn't have to be long at all. A few minutes of ignoring a playful puppy sends a big message to them.
The biting phase is something most puppies grow out of naturally anyway, but those little puppy teeth can hurt so hopefully these tips will help you and your family. Good luck!