3

一周前我意识到我无法通过包控制安装任何新包。我尝试了一切,甚至重新安装了 sublime,同时清理了所有文件 /Library/Application Support/ 一切。还是同样的问题。有任何想法吗?

ignored packages updated to: ["Emmet", "Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548))) downloading https://codeload.github.com/sergeche/emmet-sublime/zip/master.
error: Package Control

Unable to download Emmet. Please view the console for more details.
ignored packages updated to: ["Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
4

2 回答 2

12

您可以更改下载器的优先级~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings

"downloader_precedence":
{
    "linux":
    [
        "urllib",
        "curl",
        "wget"
    ],
    "osx":
    [
        "curl",
        "urllib"
    ],
    "windows":
    [
        "wininet"
    ]
},

更改urllibcurl对我有用。

于 2018-11-15T05:47:29.253 回答
3

对于 OSX:

bhanu 的回答是正确的,但我的“包控制设置 - 用户”文件不在那个确切位置。更一般的说明:

  • 打开命令面板(Mac 上的 Cmd+Shift+P)
  • 类型Package Control Settings
  • 打开“包控制设置 -默认”并搜索downloader_precedence
  • 它可能看起来像这样 - 注意默认的 osx 下载器是"urllib"
"downloader_precedence": {
        "windows": ["wininet"],
        "osx": ["urllib"],
        "linux": ["urllib", "curl", "wget"]
    },
  • 您实际上无法编辑默认值。通过转到命令面板>“包控制设置 -用户”覆盖此设置
  • 将上面的代码片段复制粘贴到用户文件中(如果需要,在现有设置后正确缩进并添加逗号)并制作"curl"第一个 osx 下载器:
"downloader_precedence": {
        "windows": ["wininet"],
        "osx": ["curl", "urllib"],
        "linux": ["urllib", "curl", "wget"]
    },
于 2020-05-15T03:11:47.037 回答