Top community members
All Wiki Articles Create Wiki Article

Have you ever heard about encyclopedia for code?

What about: Wiki for Code project?

* because I've tried to share code and my solutions on different services and it was removed or I was unwelcomed
   - maybe it wasn't good place, but this one is.

if you think you have solution that can help someone, you are welcome to share this solution - Click here

TypeScript - how to install tsc (TypeScript compiller) for windows

0 contributions
13 points

TypeScript compiler for Windows can be installed in following way.

1. Instalation guid

  1. Ensure that NodeJS and npm are installed (installation and running instruction is here).
  2. Open some terminal as administrator, e.g. Bash (installation struction is here).
  3. Install TypeScript compiller with command:
    $ npm install -g typescript
    where -g flag means global installation.
TypeScript installation example
TypeScript installation example

2. *.ts compilation guid

  1. Create Script.ts file:
    for(let i = 0; i < 5; ++i)
        console.log('Hello world!');
  2. Run tsc command
    $ tsc Script.ts

    Note: after compliation Script.js file should be created.

  3. Run compiled program
    $ node Script.js

    Output:

    Hello world!
    Hello world!
    Hello world!
    Hello world!
    Hello world!

3. References

  1.  TypeScript Installation - Microsoft Docs

0 contributions

Suggested wiki articles:

Suggested findings

Let's do the work and have some fun
  • Dirask is online IT community for professionals and hobbyist to share their knowledge and help each other in extraordinary easy way. ❤ 💻 🙂
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    we will help you. 👍 ✔ 🦄
Read more