What had you finished with before he jumped and nipped? Had you been playing so that he was excited? Try to see if you can find some kind of a trigger, because you will almost certainly need to know this to fix the behavior.
You are right to leave when he acts inappropriately, but it will take days, or more likely weeks, of everyone in your house very consistently doing this. NEVER allow him to do it, even at times when you may be tempted to allow it, like if you have a treat or toy, or just walked into the house. Same for barking. Don't ay anything, just turn around or leave. The second he stops, return your attention to him
He may want something to do while you are not interacting with him. Have you tried stuffing a kong or buying a chew toy? (my dog has a petstages dogwood chew toy)
You may want to research how to train a "settle" for him, so he knows what he ought to be doing.
You are right to leave when he acts inappropriately, but it will take days, or more likely weeks, of everyone in your house very consistently doing this. NEVER allow him to do it, even at times when you may be tempted to allow it, like if you have a treat or toy, or just walked into the house. Same for barking. Don't ay anything, just turn around or leave. The second he stops, return your attention to him
He may want something to do while you are not interacting with him. Have you tried stuffing a kong or buying a chew toy? (my dog has a petstages dogwood chew toy)
You may want to research how to train a "settle" for him, so he knows what he ought to be doing.