microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.44k stars 28.1k forks source link

Not able to install typescirpt compiler #196033

Closed tharangthomas closed 8 months ago

tharangthomas commented 8 months ago

Type: Bug

I am not able to install the typescript globally or locally in a project. Here is a snippet of terminal. Please help

PS C:\Users\237160\ACSMaximusSoftphoneApp> npm install -g typescript

changed 1 package in 2s PS C:\Users\237160\ACSMaximusSoftphoneApp> tsc --version tsc : The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.73GB (19.41GB free)| |Process Argv|--crash-reporter-id c52ff71d-b95b-45b8-a100-088894fabea9| |Screen Reader|no| |VM|0%|
Extensions (14) Extension|Author (truncated)|Version ---|---|--- copilot|Git|1.128.0 copilot-chat|Git|0.8.0 console-manager|Hua|0.0.7 powerplatform-vscode|mic|2.0.11 vscode-azureappservice|ms-|0.25.1 vscode-azurecontainerapps|ms-|0.5.1 vscode-azureresourcegroups|ms-|0.7.5 csdevkit|ms-|0.5.150 csharp|ms-|2.7.25 vscode-dotnet-runtime|ms-|1.8.1 vscodeintellicode-csharp|ms-|0.1.26 azure-account|ms-|0.11.6 LiveServer|rit|5.7.9 vscode-css-custom-properties|Toc|0.0.5
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30856253 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 962ge761:30841074 03d35959:30757346 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofa:30866041 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 copilotsettingc:30859502 synctok:30821570 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30821572 pythonmhint1:30842940 dsvsc015:30845448 pyreplss1:30865275 pythontbext0:30864172 ```
IllusionMH commented 8 months ago

/question

This doesn't look like a bug with VS Code editor itself.

Moreover tsc won't be in PATH unless you have proper npm config/installation that would add folder with global packages to PATH


Unless it's reproducible only in integrated terminal, and not it PS/cmd opened separately - this is improper place to report issue. Moreover, if it's for all global packages, then you should t try to reinstall node/npm

VSCodeTriageBot commented 8 months ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!