Was advised by a friend to squirt my puppy quickly with water and say 'no' when she starts nipping ankles ot biting trousers. Just a little squirt, enough to distract her. Seems to be working. I use a Jif lemon container. Will see what today brings as it is raining and it is much more difficult to entertain her inside.
When my dog was a puppy I was told to make a short, high pitched shriek whenever he started nipping, worked a treat with him because it shocked him into stopping. The water pistol never worked with him because he absolutely loves being sprayed with water!