通过代码的方式安装install package,一直提示网络连接失败。找了很多方法才解决掉
1、代码的方式安装失败,是因为无法下载Package Control 主文件,需要我们手工下载到本地
下载地址:https://github.com/wbond/package_control, 直接下载 .zip,解压之后,把文件夹名称修改为“Package Control”。注意:首字母大写
2、点击Preferences->Browse Packages,打开一个文件夹,复制刚才的“Package Control”文件到该目录下面。
3、重启sublime,如果出现以下报错:
“It appears you have Package Control installed as both a .sublime-package file and a directory inside of the Packages folder.”
To fix this issue, please:
1. Open the "Preferences" menu
2. Select "Browse Packages\u2026"
3. Delete the folder "Package Control"
4. Restart Sublime Text
删除Installed Packages目录下的,删除 0_package_control_loader.sublime-package 文件,
4、在 "Preferences -> Package Settings -> Package Control -> Settings User" 中新添加一个项 "channels"
{
"channels":["https://raw.githubusercontent.com/SuCicada/channel_v3.json/master/channel_v3.json"],
}
5、完美解决