Carmelo Anthony scored 22 of his 30 points in the first quarter, and the New York Knicks held on after he departed with a sprained left ankle to beat the Los Angeles Lakers 116-107 in coach Mike D'Antoni's return to Madison Square Garden.