VSCode package.json warning: Problems loading reference

3,050 阅读1分钟

问题描述

使用 vscode 调试代码,在加载时候会报错,启动调试项目也特别慢,报错内容如下:

Problems loading reference 'json.schemastore.org/package': Unable to load schema from 'json.schemastore.org/package': Request vscode/content failed unexpectedly without providing any details.

原因

网络原因,无法连接到 schema 。

解决方法

设置离线模式

打开 VSCode 的 File ==》Preferences ==》Settings ==》Application

点击 Edit in settings.json 打开设置文件,添加一行 json.schemaDownload.enable": false

保存,重启 vscode 即可。