This all started with tsc --init
not working...
What's the difference between:
npm install -g typescript
npm install -g tsc
npm install -g ntsc
I thought "tsc" was just a shortcut for typescript, but listing them out seems to give different versions
PS C:\angular2-app> npm list -g tsc
C:\Users\Wheeeeee\AppData\Roaming\npm
└── [email protected]PS C:\angular2-app> npm list -g typescript
C:\Users\Wheeeeee\AppData\Roaming\npm
└── [email protected]
So, what's the difference between the two. Is typescript the library and tsc some sort of a command line helper?
P.S. I don't really care about ntsc, it's just part of the question if you know offhand or for some reason think it's a must. Ignore otherwise.
EDIT: Given the answer below, how does powershell know which tsk I am trying to use? How do I specify?
Tsc stands for `TypeScript compiler` and is a simple tool included in Typescript itself, allowing you to compile any ts files into js.
What is tsc? A deprecated release of the TypeScript compiler. Visit Snyk Advisor to see a full health score report for tsc, including popularity, security, maintenance & community analysis.
The tsc command envokes the TypeScript compiler. When no command-line options are present, this command looks for the tsconfig. json file. If no tsconfig. json is found, it returns by dumping the usage of tsc command.
tsc is the TypeScript compiler, which is completely separate from ts-node . ts-node is a wrapper for Node. js's node executable that installs a TypeScript-enabled module loader that compiles TypeScript on the fly as needed. From its npm page: TypeScript Node works by registering the TypeScript compiler for .
tsc
is some package with the same name as the typescript compiler on the command line. typescript
is the real TypeScript package.
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