"Chrome扩展程序抛出CRX文件错误""CRX_REQUIRD_PROOF_MISSING"; [英] "Chrome extension throws CRX file Error "CRX_REQUIRD_PROOF_MISSING"

查看:762
本文介绍了"Chrome扩展程序抛出CRX文件错误""CRX_REQUIRD_PROOF_MISSING";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有Chrome扩展程序,并使用开发人员模式创建了crx文件.我将crx文件上传到一些内部URL(www.xyz.com/internal.crx).

每当我尝试使用URL安装扩展名(不在开发人员模式下)时,都会引发错误软件包无效:

CRX_REQUIRD_PROOF_MISSING

我在开发人员模式下通过拖放使用的同一CRX文件,并且工作正常.请帮助内部解决URL下载和安装扩展程序的问题.

解决方案

在最新版本的Chrome中,仅支持CRX3格式:

重新包装说明 请参阅以下文章,以获取有关如何将Chrome应用和扩展程序重新打包到CRX3中的详细说明格式.

如果您使用开放源代码库来构建扩展,请与该供应商一起验证CRX3支持.另外,您可以使用 https://crx-checker.appspot.com 检查扩展程序的版本并让您的供应商知道.

如果您无法重新打包或无法使用CRX3格式,则可以启用 ExtensionAllowInsecureUpdates 政策.请注意,这只是暂时的解决方法,所有扩展名都必须移至CRX3格式!

M76(2019年7月) 默认情况下,CRX2将被禁用,每个人都应移至CRX3. 作为临时解决方法,可以使用 ExtensionAllowInsecureUpdates 重新启用CRX2. >

(来自 https://www.chromium.org/crx2-deprecation )

您的选择是:

  • 以某种方式用CRX3格式重新打包扩展名,例如使用 npm程序包
  • 使用上述其他建议的解决方案之一

I have Chrome extension and create the crx file using developer mode. I uploaded the crx file to some internal url (www.xyz.com/internal.crx).

Whenever i am trying to install the extension with URL (not in developer mode) it is throwing error Package is invalid:

CRX_REQUIRD_PROOF_MISSING

Same CRX file i used in developer mode with drag and drop and it's working fine. Please help to solve the problem with URL downloading and installing extension internally.

解决方案

In recent versions of Chrome only CRX3 format is supported:

Instructions for Repackaging Please see the following article for detailed instructions on how to repackage Chrome apps and extensions into the CRX3 format.

If you use an open source library to build extensions please verify CRX3 support with that vendor. In addition you can use https://crx-checker.appspot.com to check the version of your extension and let your vendor know.

If you are unable to repackage or cannot use the CRX3 format, you can enable the ExtensionAllowInsecureUpdates policy. Note that this is only a temporary workaround, all extensions must move to the CRX3 format!

M76 (July 2019) By default, CRX2 will be disabled and everyone should move to CRX3. As a temporary workaround, ExtensionAllowInsecureUpdates can be used to re-enable CRX2.

(from https://www.chromium.org/crx2-deprecation)

Your options are:

  • Repack the extension in CRX3 format in some way or another, for example with this npm package.
  • Use one of the other suggested solutions above

这篇关于"Chrome扩展程序抛出CRX文件错误""CRX_REQUIRD_PROOF_MISSING";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆