The modification of high-mannose N-glycans by UDP-N-acetylglucosamine-lysosomal-enzyme N-acetylglucosaminephosphotransferase and the subsequent removal of the N-acetylglucosamine residues yielding mannose-6-P that occurs in the ER-Golgi apparatus to N-glycans destined for the lysosome.