【Mac】Sublime安装及解决There are no pa
2017-05-25 本文已影响4648人
izhangxm
我的系统版本是10.11.6,sublime版本为3216,package control的版本为3.2.1。安装完sublime后,安装package control,成功。安装别的包时发生了如上图所示的错误:
Package Control
There are no packages available for installation
Please see https://packagecontrol.io/docs/troubleshooting for help
1、安装sublime并注册
官网下载后直接拖到应用程序并打开,找到如下菜单
输入如下注册码
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
200C25BE DBBC4855 C4CFB774 C5EC138C
0FEC1CEF D9DCECEC D3A5DAD1 01316C36
—— END LICENSE ——
2、安装Package Control
command + shift + p
输入
install Package Control
3、打开debug模式
注意这个debug是Package Control的debug,不是sublime的debug
增加如下内容:
"debug": true,
4、安装其他软件包
按 comman + shift + p,输入install package得到一开始的错误。并按control + ` 得到如下错误:
Package Control: Settings change detected, clearing cache
Package Control: Fetching list of available packages and dependencies
Platform: osx-x64
Sublime Text Version: 3126
Package Control Version: 3.2.1
Package Control: Download Debug
URL: https://packagecontrol.io/channel_v3.json
Timeout: 30
Resolved IP: 50.116.34.243
Resolved IPv6: 2600:3c02:e000:42::1
Package Control: Urllib Debug Proxy
http_proxy:
https_proxy:
proxy_username:
proxy_password:
Package Control: Generating new CA bundle from system keychain
Package Control: Finished generating new CA bundle at /Users/simon/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (308196 bytes)
Package Control: Created blank user CA bundle
Package Control: Regenerated the merged CA bundle from the system and user CA bundles
Package Control: Urllib HTTPS Debug General
Connecting to packagecontrol.io on port 443
Package Control: Urllib HTTPS Debug General
Upgrading connection to SSL using CA certs file at /Users/simon/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle
Package Control: Error downloading channel. HTTP exception InvalidCertificateException (Host packagecontrol.io returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548))) downloading https://packagecontrol.io/channel_v3.json.
这种错误我尝试了好几种解决方案,最终只有一种有效:
打开下面的菜单,
并增加如下内容:
"downloader_precedence": {
"windows": ["wininet"],
"osx": ["curl", "wget"],
"linux": ["urllib", "curl", "wget"]
},
最终内容如下:
再次安装包应该就没问题了
小伙伴们又可以愉快的安装软件包了呢~~