'tsc command not found' in compiling typescript

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

    I solved this on my machine by just running sudo npm install in the directory that I was getting the error.

提交回复
热议问题