I'm working in VS Code and started getting this error yesterday. All of my json files have this error, not just a few. If I remember right there was an update to the program yesterday or the day before. Did the update break something or reset a setting that I forgot I had set?
我正在使用VS Code并且昨天开始收到此错误。我的所有json文件都有此错误,而不仅仅是少数几个。如果我没记错的话,昨天或前一天对该计划进行了更新。更新是否破坏了某些内容或重置了我忘记设置的设置?
When looking this up, people are talking about downloading the schema and using it locally, but I would prefer not to have to do that and would instead like to find out why this broke?
在查看时,人们正在讨论下载模式并在本地使用它,但我宁愿不必这样做,而是想知道为什么这会破坏?
I am using a proxy, but as far as I know that hasn't changed. Here's the exact error I'm getting.
我正在使用代理,但据我所知,没有改变。这是我得到的确切错误。
Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to load schema from 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to connect to https://schemastore.azurewebsites.net/schemas/json/package.json. Error: connect ECONNREFUSED 168.62.224.13:443
加载引用'https://schemastore.azurewebsites.net/schemas/json/package.json'时出现问题:无法从'https://schemastore.azurewebsites.net/schemas/json/package.json'加载架构:无法连接到https://schemastore.azurewebsites.net/schemas/json/package.json。错误:连接ECONNREFUSED 168.62.224.13:443
4 个解决方案
#1
6
Open User settings of visual studio code through the command palette:
通过命令面板打开visual studio代码的用户设置:
- Press F1
- Type
user settings
. - Select
Preferences:Open User Settings
from drop down - Put below code and modify accordingly
输入用户设置。
从下拉列表中选择首选项:打开用户设置
放在下面的代码并相应地修改
"http.proxy": "http://username:password@hostname:port/", "http.proxyAuthorization": null, "http.proxyStrictSSL": true
#2
4
I was facing following issue with Angular 6:
我正面临Angular 6的以下问题:
Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to load schema from 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to connect to https://schemastore.azurewebsites.net/schemas/json/package.json. Error: unable to get local issuer certificate
加载引用'https://schemastore.azurewebsites.net/schemas/json/package.json'时出现问题:无法从'https://schemastore.azurewebsites.net/schemas/json/package.json'加载架构:无法连接到https://schemastore.azurewebsites.net/schemas/json/package.json。错误:无法获得本地颁发者证书
I added following properties at the end of the User Settings File and worked for me:
我在用户设置文件的末尾添加了以下属性,并为我工作:
"http.proxy": "",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": false
#3
0
Well i didnt like the idea to set "http.proxyStrictSSL": false, so i started searching, and i found this Issue on SchemaStore site from azure. After seeing this i concluded that my proxy was getting some problem with the certificate and authentication. What i did was change all "https" to "http" in the following session of package.json file(Mine was on this path: C:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-basics\package.json).
好吧,我不喜欢设置“http.proxyStrictSSL”的想法:false,所以我开始搜索,我在azure的SchemaStore网站上找到了这个问题。看到这个后我得出结论,我的代理服务器在证书和身份验证方面遇到了一些问题。我所做的是在package.json文件的以下会话中将所有“https”更改为“http”(我在这条路径上:C:\ Program Files \ Microsoft VS Code \ resources \ app \ extensions \ typescript-basics \ package以.json)。
"jsonValidation": [
{
"fileMatch": "tsconfig.json",
"url": "http://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
},
{
"fileMatch": "tsconfig.json",
"url": "./schemas/tsconfig.schema.json"
},
{
"fileMatch": "tsconfig.*.json",
"url": "http://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
},
{
"fileMatch": "tsconfig.*.json",
"url": "./schemas/tsconfig.schema.json"
},
{
"fileMatch": "typings.json",
"url": "http://schemastore.azurewebsites.net/schemas/json/typings.json"
}
]
#4
0
please follow the step below to solve this problem:
请按照以下步骤解决此问题:
- Open the folder where package.json file present
- Type
npm install
from cmd - restart VS code or any IDE that you use.
打开package.json文件所在的文件夹
从cmd键入npm install
重新启动VS代码或您使用的任何IDE。
#1
6
Open User settings of visual studio code through the command palette:
通过命令面板打开visual studio代码的用户设置:
- Press F1
- Type
user settings
. - Select
Preferences:Open User Settings
from drop down - Put below code and modify accordingly
输入用户设置。
从下拉列表中选择首选项:打开用户设置
放在下面的代码并相应地修改
"http.proxy": "http://username:password@hostname:port/", "http.proxyAuthorization": null, "http.proxyStrictSSL": true
#2
4
I was facing following issue with Angular 6:
我正面临Angular 6的以下问题:
Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to load schema from 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to connect to https://schemastore.azurewebsites.net/schemas/json/package.json. Error: unable to get local issuer certificate
加载引用'https://schemastore.azurewebsites.net/schemas/json/package.json'时出现问题:无法从'https://schemastore.azurewebsites.net/schemas/json/package.json'加载架构:无法连接到https://schemastore.azurewebsites.net/schemas/json/package.json。错误:无法获得本地颁发者证书
I added following properties at the end of the User Settings File and worked for me:
我在用户设置文件的末尾添加了以下属性,并为我工作:
"http.proxy": "",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": false
#3
0
Well i didnt like the idea to set "http.proxyStrictSSL": false, so i started searching, and i found this Issue on SchemaStore site from azure. After seeing this i concluded that my proxy was getting some problem with the certificate and authentication. What i did was change all "https" to "http" in the following session of package.json file(Mine was on this path: C:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-basics\package.json).
好吧,我不喜欢设置“http.proxyStrictSSL”的想法:false,所以我开始搜索,我在azure的SchemaStore网站上找到了这个问题。看到这个后我得出结论,我的代理服务器在证书和身份验证方面遇到了一些问题。我所做的是在package.json文件的以下会话中将所有“https”更改为“http”(我在这条路径上:C:\ Program Files \ Microsoft VS Code \ resources \ app \ extensions \ typescript-basics \ package以.json)。
"jsonValidation": [
{
"fileMatch": "tsconfig.json",
"url": "http://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
},
{
"fileMatch": "tsconfig.json",
"url": "./schemas/tsconfig.schema.json"
},
{
"fileMatch": "tsconfig.*.json",
"url": "http://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
},
{
"fileMatch": "tsconfig.*.json",
"url": "./schemas/tsconfig.schema.json"
},
{
"fileMatch": "typings.json",
"url": "http://schemastore.azurewebsites.net/schemas/json/typings.json"
}
]
#4
0
please follow the step below to solve this problem:
请按照以下步骤解决此问题:
- Open the folder where package.json file present
- Type
npm install
from cmd - restart VS code or any IDE that you use.
打开package.json文件所在的文件夹
从cmd键入npm install
重新启动VS代码或您使用的任何IDE。