VSCode package.json warning: Problems loading reference 'https://json.schemastore.org/package'...


报错内容

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

原因

因为某些原因无法连接到 Schema

解决方法

  • 方法 A : 切换网络环境
  • 方法 B : 见 Stack Overflow 原文链接
  • 方法 C : 设置离线模式

设置离线模式方法:
在 User settings.json 中添加 "json.schemaDownload.enable": false

参考

Stack Overflow
https://stackoverflow.com/questions/47691993/file-package-json-severity-warning-message-problems-loading-reference

Visual Studio Code 文档
https://code.visualstudio.com/Docs/languages/json#_json-schemas-settings


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM