Dlise
시원한 냉장고
Dlise
전체 방문자
오늘
어제
  • 시원한 냉장고 (136)
    • Java (31)
      • Java (26)
      • Spring (5)
    • Algorithm & PS (25)
      • Algorithm (14)
      • Problem Solving (11)
    • Network (12)
    • Database (2)
    • Data Structure (4)
    • OOP & CleanCode (5)
    • Web (0)
    • Git (2)
    • AI (2)
    • Project (1)
      • Discord Bot (1)
    • Error (19)
    • Tools (5)
    • 수학 (5)
      • 확률과 통계(기초) (5)
    • 컴퓨터 구조 (3)
    • 활동 (20)
      • 행사 & 여행 (10)
      • 자격증 (4)
      • 회고 (6)
      • 기타 (0)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 백준
  • 네트워크
  • spring security in action second edition
  • CleanCode
  • 통계학
  • 중위 표기법
  • 후위 표기법
  • java
  • 가장쉬운알고리즘책
  • 열혈강의자료구조

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
Dlise

시원한 냉장고

Error

Typescript - This is not the tsc command you are looking for

2025. 4. 19. 12:30

.ts 파일을 컴파일하기 위해 tsc 명령어를 실행했는데 아래 문제가 발생했다.

 

                This is not the tsc command you are looking for


To get access to the TypeScript compiler, tsc, from the command line either:

- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages

 

 

해당 문제는 stakoverflow에서 원인과 해결책을 찾을 수 있었다.

https://stackoverflow.com/questions/67677320/this-is-not-the-tsc-command-you-are-looking-for

 

This is not the tsc command you are looking for

When I run tsc in the terminal (it does not matter where) I get returned: $ npx tsc --version This is not the tsc command you are looking for To get access to the TypeScript compil...

stackoverflow.com

 

원인

문제는 tsc를 install했기 때문이다. 현재 tsc는 deprecated 되었고, typescript를 install 해야 한다.

 

 

해결 방법

나는 tsc를 global로 다운로드 했기 때문에 아래 명령어로 uninstall 했다.

npm uninstall -g tsc

 

이후 typescript를 install 했다.

npm install -g typescript

'Error' 카테고리의 다른 글

Sublime Text - Package Control이 검색되지 않는 문제(MAC)  (1) 2025.03.11
MySQL - column ' ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by  (3) 2025.02.27
Spring - 406 Not Acceptable 발생  (0) 2024.08.05
Spring - Swagger Response 정보가 보이지 않는 문제  (0) 2024.07.30
Spring - 'Failed to convert from type [java.lang.String] to type [java.util.Date] for value [ ]'  (3) 2024.05.05
    'Error' 카테고리의 다른 글
    • Sublime Text - Package Control이 검색되지 않는 문제(MAC)
    • MySQL - column ' ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
    • Spring - 406 Not Acceptable 발생
    • Spring - Swagger Response 정보가 보이지 않는 문제
    Dlise
    Dlise

    티스토리툴바