Typescript npm install not working

3.7k Views Asked by At

When I run sudo npm install -g typescript the only thing that gets installed is test3. This is what I get:

$ sudo npm install -g typescript
Password:
[email protected] /usr/local/lib/node_modules/test3
$ tsc
-bash: tsc: command not found

The Typescript compiler is never installed. I reinstalled node/npm just now to see if it was an install issue, but that didn't seem to fix it. Any ideas?

0

There are 0 best solutions below