'tsc command not found' in compiling typescript

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

    Easy fix for Mac I found. Just run these commands:

    sudo npm install -g concurrently
    sudo npm install -g lite-server
    sudo npm install -g typescript
    

    Nothing worked except this for me.

提交回复
热议问题