Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile issues with npm [email protected] on Windows

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: Console on Windows


Mac Console on Mac

like image 982
dante_dubon Avatar asked Feb 28 '15 01:02

dante_dubon


Video Answer


1 Answers

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 :)

like image 65
Dick van den Brink Avatar answered Sep 20 '22 14:09

Dick van den Brink