'tsc command not found' in compiling typescript

后端 未结 15 989
耶瑟儿~
耶瑟儿~ 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:07

    I know this is an old question, but I had this same problem on Ubuntu 19.10 LTS.

    To solve this I ran the following command:

    $ sudo apt install node-typescript
    

    After that, I was able to use tsc.

    I hope it helps :)

提交回复
热议问题