'tsc command not found' in compiling typescript

后端 未结 15 991
耶瑟儿~
耶瑟儿~ 2020-12-05 02:02

I want to install typescript, so I used the following command:

npm install -g typescript 

and test tsc --version, but it just

15条回答
  •  忘掉有多难
    2020-12-05 02:29

    The only solution that work for me was put npx tsc -v or for the compiling npx tsc salida.ts

    "salida.ts" is the name of the file

提交回复
热议问题