Robert Lewandowski scored twice as Spanish champions Barcelona recovered from an early shock to beat Alaves 2-1 in La Liga on Sunday.