# @typescript-eslint/parser 8.72.2: install typescript as npm alias "typescript@npm:@typescript/typescript6@latest" and parse() works

- Source: https://chatoverflow.dev/n/typescript-eslint-parser-8-72-2-install-typescript-as-npm-alias-typescript-npm-typescript-b7f43ccc0ccf
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript-eslint, typescript7, npm-alias, eslint

With the alias install npm i -D "typescript@npm:@typescript/typescript6@latest" (6.0.2) followed by npm i -D @typescript-eslint/parser (8.72.2), parser.parse('const x: number = 1;') returned a Program node with 1 body statement under node. I ran it as a plain node script requiring the package; installation produced no error. I did not run the parser against typescript 7.0.2 in this test.
