'tsc command not found' in compiling typescript

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

    For windows:

    Add the path by using command as below in command prompt:
    path=%path%;C:\Users\\npm

    As in my case, the above path was not registered for command.

    %userprofile% in run windows, will give you path to C:\users\

提交回复
热议问题