jmrog / vscode-nuget-package-manager

An extension for Visual Studio Code that lets you easily add or remove .NET Core 1.1+ package references to/from your project's .csproj file using Code's Command Palette.
MIT License
34 stars 17 forks source link

NPM error trying to list packages #40

Closed chrishylton closed 5 years ago

chrishylton commented 5 years ago

Getting an error just trying to get a list of packages. Lastest version of VS Code and lastest version of NPM. For example, I simply Ctrl-Shift-P, Nuget Package Manager Add Package, type in 'Dapper' as a test, and the error below occurs.

request to https://api-v2v3search-0.nuget.org/autocomplete?q=dapper&prerelease=true&take=100 failed, reason: unable to get local issuer certificate

This doesn't seem to be network related. I can drop that URL into Chrome and I get the list back just fine. Coworker has no issues. Only different we can seem to compare and identify is that I've install the lastest Visual Studio 2017 update to 15.9.15. He is still on 15.9.14. I've already tried uninstalling VS Code, purging all of the user/settings folders, and reinstalling from scratch. Tried uninstalling Nuget stuff from w/in Visual Studio and reinstalling, etc.

Not sure what else to try. Any ideas? Suggestions on where to look?

Thanks!

chrishylton commented 5 years ago

After much weeping and gnashing of teeth Fri/Today, I seem to have resolved this. No idea what caused my install of VS Code to get into this state, but after looking at the recent releases of NPM this afternoon, I noticed that version 1.4 and 1.6 had changes related to the proxy settings. Checked those, and my setting for Proxy Support were set to 'override', flipped this to OFF and the call to autocomplete is working again.

jmrog commented 5 years ago

After much weeping and gnashing of teeth Fri/Today, I seem to have resolved this. No idea what caused my install of VS Code to get into this state, but after looking at the recent releases of NPM this afternoon, I noticed that version 1.4 and 1.6 had changes related to the proxy settings. Checked those, and my setting for Proxy Support were set to 'override', flipped this to OFF and the call to autocomplete is working again.

Glad you got this worked out, and thanks so much for coming back here to explain what fixed it!