microsoft / vscode

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

Unable to install salesforce code scanner #206347

Closed nikhil-capita closed 8 months ago

nikhil-capita commented 8 months ago

Type: Bug

Hi Team,

I am trying to install salesforce code scanner using below command sfdx plugins:install @salesforce/sfdx-scanner

But I am getting below error - Polling for new version(s) to become available on npm... done RequestError: unable to get local issuer certificate Code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY

Could you please help me to fix this.

Thanks, Nikhil

VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:40:56.878Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-12600H (16 x 3187)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.69GB (23.13GB free)| |Process Argv|--crash-reporter-id 5fd7c251-4c7c-495a-a27a-465804a18f63| |Screen Reader|no| |VM|0%|
Extensions (13) Extension|Author (truncated)|Version ---|---|--- apex-pmd|chu|0.6.2 vscode-eslint|dba|2.4.4 salesforce-vscode-slds|sal|1.4.8 salesforcedx-vscode|sal|60.1.2 salesforcedx-vscode-apex|sal|60.1.2 salesforcedx-vscode-apex-debugger|sal|60.1.2 salesforcedx-vscode-apex-replay-debugger|sal|60.1.2 salesforcedx-vscode-core|sal|60.1.2 salesforcedx-vscode-lightning|sal|60.1.2 salesforcedx-vscode-lwc|sal|60.1.2 salesforcedx-vscode-soql|sal|60.1.2 salesforcedx-vscode-visualforce|sal|60.1.2 sfdx-code-analyzer-vscode|sal|0.4.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 d34g3935:30971562 edj9j583:30969295 fegfb526:30973843 bg6jg535:30958357 dsvsc020:30973508 ```
gjsjohnmurray commented 8 months ago

/causedByExtension

vscodenpa commented 8 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!

nikhil-capita commented 8 months ago

image

nikhil-capita commented 8 months ago

Thanks, I will raise a case with Salesforce Code Analyzer