When I first had my puppy we fed him in the crate and only associated it with nice things

I also put the crate in my room overnight to start off with for the first few nights and then gradually moved it back downstairs as he got used to the idea
Not exactly ideal but he didn't keep me awake crying after that