解决Sublime Install Package的There are no packages available for install问题(channel_v3.json)

<div class="blog-content-box">
	<div class="article-header-box">
		<div class="article-header">
			<div class="article-title-box">
				<span class="article-type type-1 float-left">原</span>				<h1 class="title-article">解决Sublime Install Package的There are no packages available for install问题(channel_v3.json)</h1>
			</div>
			<div class="article-info-box">
				<div class="article-bar-top">
																				<span class="time">2018年08月27日 22:18:08</span>
					<a class="follow-nickName" href="https://me.csdn.net/Sunsscode" target="_blank">Nevercome_</a>
						<span class="read-count">阅读数:220</span>
										</div>
				<div class="operating">
														</div>
			</div>
		</div>
	</div>
	<article class="baidu_pl">
		<div id="article_content" class="article_content clearfix csdn-tracking-statistics" data-pid="blog" data-mod="popu_307" data-dsm="post">
								            <div class="markdown_views prism-atom-one-dark">
							<!-- flowchart 箭头图标 勿删 -->
							<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
							<p>Sublime版本 Sublime Text 3.1.1 Build 3176 <br>
自己也尝试了很多次,所以这一解决办法仅是可能解决你的问题 <br>
<strong>一、解决简要描述</strong> <br>
造成的原因大致是 <br>
<img title="" alt="这里写图片描述" src="https://img-blog.csdn.net/20180827215057540?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1N1bnNzY29kZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70"> <br>
无法通过request去获取channel_v3.json这一文件,网上所说的Ipv4和Ipv6其实也都是为了让它顺利被下载到本地,那么也根据网上一些最直接的办法,我们手动将它下载到本地。用Chrome打开<a href="https://packagecontrol.io/channel_v3.json" rel="nofollow" target="_blank">https://packagecontrol.io/channel_v3.json</a>,另存为即可(不推荐用现成的,从官网直接另存为的最好,<a href="https://download.csdn.net/download/sunsscode/10630119" rel="nofollow" target="_blank">https://download.csdn.net/download/sunsscode/10630119</a>)。接着再将获取这一json的地址修改为你的本地地址,<strong>然而问题并没有解决,控制台报错 “schema_version is not valid” </strong>,意思就是协议版本号不对,我们打开刚才保存的channel_v3.json(用普通的文本编辑器即可), <br>
<img title="" alt="这里写图片描述" src="https://img-blog.csdn.net/2018082721580888?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1N1bnNzY29kZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70"> <br>
发现它的版本号是”3.0.0”,我在网上寻找发现了一种解决办法,即手动修改版本号 <br>
<img title="" alt="这里写图片描述" src="https://img-blog.csdn.net/20180827220005429?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1N1bnNzY29kZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70"> <br>
我将版本号改成了2.0,确实可行了。</p>

<p><strong>二、操作步骤</strong> <br>
以上涉及到的一些操作步骤请参考如下博文(嘿): <br>
<a href="https://www.cnblogs.com/fayin/p/6414735.html" rel="nofollow" target="_blank">https://www.cnblogs.com/fayin/p/6414735.html</a></p>

<p>感谢以上我所参考到的博文于创作者。</p>            </div>
						<link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-7f770a53f2.css" rel="stylesheet">
                </div>
									
					<script>
						(function(){
							function setArticleH(btnReadmore,posi){
								var winH = $(window).height();
								var articleBox = $("div.article_content");
								var artH = articleBox.height();
								if(artH > winH*posi){
									articleBox.css({
										'height':winH*posi+'px',
										'overflow':'hidden'
									})
									btnReadmore.click(function(){
										articleBox.removeAttr("style");
										$(this).parent().remove();
									})
								}else{
									btnReadmore.parent().remove();
								}
							}
							var btnReadmore = $("#btn-readmore");
							if(btnReadmore.length>0){
								if(currentUserName){
									setArticleH(btnReadmore,3);
								}else{
									setArticleH(btnReadmore,1.2);
								}
							}
						})()
					</script>
					</article>
	
</div>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值