Maybe it's obvious, but I checked everywhere (besides the right place) and googled it. Nothing.
相关问题
- Angular RxJS mergeMap types
- void before promise syntax
- How to know full paths to DLL's from .csproj f
- Ignore Typescript errors in Webpack-dev-server
- Importing NuGet references through a local project
相关文章
- Cannot find module 'redux' 怎么解决?
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- How to get a Component's own ElementRef for re
- 'Pick' only refers to a type, but is being
- Why does `keyof any` have type of `string | number
- Visual Studio Hangs on Loading UI Library
- React testing library: Test attribute / prop
Open a (normal, not the VS) command prompt or a PowerShell prompt.
tsc.exe -v tsc.cmd -v tsc -v
If you installed the same version of TypeScript for Visual Studio and using npm, the output from the above three commands should be the same.
If not, check your System PATH to see where in the path hierarchy and which typescript directory is listed. For PowerShell users, the easy way is:
$env:path -split ';'
Be careful of having nothing or multiple TypeScript directories listed in your System PATH variable. As of June 9, 2017, my System PATH looked like this (just the top part, which is all that matters in this situation):
ps>$env:path -split ';' C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.3 C:\nodejs\ C:\Users\{username}\AppData\Roaming\npm
Notice that only the 2.3 directory is included in the PATH, not multiple versions.
You can do
npm list | grep typescript
if it's installed through npm.