I installed the TSC with NPM yesterday and when I download the last Typescript definitions from the repository with [email protected] and I proceed to compile my code I got a lot of compile errors from the definitions. The only way that I have found to fix this kind of errors is going back to definitions for the typescript 1.3, Do you have an idea why this is happening?
Update 1 I installed the tsc for my mac (the installation mentioned before was in Windows) and when I run tsc --version I got different results, even if both of they say they are 1.4.1
Windows:
Mac
Probably your PATH environment variable is wrong, you can check that by executing echo %PATH%
and you will probably see something like C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;
there before the roaming npm path.
You can change that by going to the Control Panel -> System & Security -> and on the left there is "Advanced System settings", click on It and a popup will open. Chose the tab "advanced" there and click the button "Environment variables", there you can change your path.
Reopen your command prompt (MSys on the look of your screenshot) or the change wont have any effect.
I hope the names are right, because I'm currently on a Dutch Windows version. If you have any problems please let me know :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With