0

Based on this link, Install Angular Offline, I have installed angular. When I check. ng --version


    Angular CLI: 6.1.3
    Node: 8.12.0
    OS: win32 ia32
    Angular:
    ...
    Package                      Version
    ------------------------------------------------------
    @angular-devkit/architect    0.7.3
    @angular-devkit/core         0.7.3
    @angular-devkit/schematics   0.7.3
    @schematics/angular          0.7.3
    @schematics/update           0.7.3
    rxjs                         6.2.2
    typescript                   2.9.2

But typescript is not working, when I tried to compile this happend:

tsc main.ts It throws 'tsc' is not recognized as an internal or external command, operable program or batch file.

Please help to solve it.

Cettt
  • 11,460
  • 7
  • 35
  • 58
Babu Kumarasamy
  • 329
  • 2
  • 6
  • 15
  • 4
    Possible duplicate of [tsc is not recognized as internal or external command](https://stackoverflow.com/questions/35369501/tsc-is-not-recognized-as-internal-or-external-command) – Tim Martens Oct 09 '18 at 06:53
  • have you installed typescript globally to use `tsc` because what you posted is required by angular internally. – Jai Oct 09 '18 at 06:58
  • Our company has blocked, installation online. So I installed offline, and TypeScript is available in the path C:\Program Files (x86)\Microsoft SDKs\TypeScript. Have also called tsc.exe manually, but no effect. – Babu Kumarasamy Oct 09 '18 at 13:08
  • When I execute from the place where TypeScript is installed it is working. C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1>tsc main.ts main.ts(21,32): error TS2304: Cannot find name 'i'. C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1> How to make it globally. – Babu Kumarasamy Oct 09 '18 at 13:21

0 Answers0