VS code problems loading package.json schema
Whenever I open a pacakage.json file I get this error.
I am not running any proxy and I haven tried turning it off like the few answers on internet suggested but that didn't fix it.
I have tried disabling and uninstalling what 5 extensions I use.
I have also tried putting this
in my settings.json and that makes the warning go away but I don't get any tooltip when hovering over properties in the package json so I don't think it's working.
I'll appreciate any help

17 Replies
btw this is from settings.json but vscode schemas are probably local so maybe it itsn't fetching anything

try adding
.json
to the url
hmm the error returned
same file or a different one?
same
restart vscode
if it doesnt work, go to "settings", search for json schema download and enable it
no dice
A couple days ago I was having trouble when fetching in node due to it's implementaion of happy path algorithm. Do you think that can be the problem here? I forgot if electron bundled node with it or just browser environment
ok it appears to bundle both. Tho I'm not sure how to test this theory in vs code.
for node i could just pass
--network-family-autoselection-attempt-timeout=500
not sure how to achieve that in vs codeno, thats a vscode thing, not node thing
check if there is an update available
already did on the latest version
im out of ideas then
disable the schema downloading then, so it doesnt bug you
I'll let it stay on it was mostly cause i was curious about the error.
Maybe i'll create a js script that downloads the package schema and adds it locally in the project
you can do that right?
actually wtf

I removed the json.schema snippet from the settings json and it suddenly started working
whatever we'll see if it breaks with next npm init
thanks for helping btw ἔρως
you're welcome
didnt think about removing that, to be honest
It shouldn't work technically since I didn't have it when i first got error
it's probably some spagetti code
probably some tool being overly helpful to you