I want to install typescript, so I used the following command:
npm install -g typescript
and test tsc --version, but it just
tsc --version
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\