Sublime text 3,包控制 - 无法安装包
Sublime text 3, Package Controll - cant install packages
大约一周前我意识到我无法通过包控制安装任何新包。我尝试了一切,甚至重新安装了 sublime,同时清理了所有文件 /Library/Application 支持/一切。仍然是同样的问题。有什么想法吗?
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
您可以在~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings
中更改下载程序的优先级。
"downloader_precedence":
{
"linux":
[
"urllib",
"curl",
"wget"
],
"osx":
[
"curl",
"urllib"
],
"windows":
[
"wininet"
]
},
将 urllib
更改为 curl
对我有用。
对于OSX:
bhanu 的回答是正确的,但我的 "Package Control Settings - User" 文件不在那个确切位置。更一般的说明:
- 打开命令面板(Cmd+Shift+P on Mac)
- 类型
Package Control Settings
- 打开 'Package Control Settings - Default' 并搜索
downloader_precedence
- 它可能看起来像这样 - 注意默认的 osx 下载程序是
"urllib"
:
"downloader_precedence": {
"windows": ["wininet"],
"osx": ["urllib"],
"linux": ["urllib", "curl", "wget"]
},
- 您实际上无法编辑默认值。通过转到命令面板 > 'Package Control Settings - User'
覆盖此设置
- 将上面的代码片段复制并粘贴到用户文件中(正确缩进并在需要时在现有设置后添加逗号)并使
"curl"
成为第一个 osx 下载器:
"downloader_precedence": {
"windows": ["wininet"],
"osx": ["curl", "urllib"],
"linux": ["urllib", "curl", "wget"]
},
大约一周前我意识到我无法通过包控制安装任何新包。我尝试了一切,甚至重新安装了 sublime,同时清理了所有文件 /Library/Application 支持/一切。仍然是同样的问题。有什么想法吗?
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
您可以在~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings
中更改下载程序的优先级。
"downloader_precedence":
{
"linux":
[
"urllib",
"curl",
"wget"
],
"osx":
[
"curl",
"urllib"
],
"windows":
[
"wininet"
]
},
将 urllib
更改为 curl
对我有用。
对于OSX:
bhanu 的回答是正确的,但我的 "Package Control Settings - User" 文件不在那个确切位置。更一般的说明:
- 打开命令面板(Cmd+Shift+P on Mac)
- 类型
Package Control Settings
- 打开 'Package Control Settings - Default' 并搜索
downloader_precedence
- 它可能看起来像这样 - 注意默认的 osx 下载程序是
"urllib"
:
"downloader_precedence": {
"windows": ["wininet"],
"osx": ["urllib"],
"linux": ["urllib", "curl", "wget"]
},
- 您实际上无法编辑默认值。通过转到命令面板 > 'Package Control Settings - User' 覆盖此设置
- 将上面的代码片段复制并粘贴到用户文件中(正确缩进并在需要时在现有设置后添加逗号)并使
"curl"
成为第一个 osx 下载器:
"downloader_precedence": {
"windows": ["wininet"],
"osx": ["curl", "urllib"],
"linux": ["urllib", "curl", "wget"]
},