因无法修改所需文件的错误而无法安装插件
我开发了一个插件,它在我的电脑上完美运行。但是当我将其发送到我们的客户端上安装时,它出现了一个错误,显示类似“您的插件无法安装,因为 Firefox 无法修改所需的文件”。
有人知道可能是什么原因吗?
I developed an addon and it run perfectly on my PC. But when I send it to install on our client, it got an error that say something like this "Your addon cannot be installed because Firefox couldn't modify the needed file".
Anyone know what the reason might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
听起来像 bug 636268:附加组件文件的路径太长。要进行验证,请让客户端在具有短路径的目录(例如
C:\temp-profile
)中创建临时配置文件,并尝试在那里安装扩展。Sounds like bug 636268: too long paths to add-on's files. To verify, get the client to create a scratch profile in a directory with a short path, like
C:\temp-profile
and try installing the extension there.客户端是否有Windows或类UNIX系统?
看起来 Firefox 配置文件文件夹存在权限问题(它是只读的)。请参阅此处了解更多详细信息。
Does client have Windows or UNIX-like system?
Looks like permission problem with Firefox profile folder (it is read-only). Look here for further details.
谢谢你们!我尝试了上述所有建议,但最终发现问题是 package.json 中的应用程序 ID 太长,我从 jid0-1Z6ceODTjCn4TmgrrAo3ARAo5J0 更改为 jid1-EGBMRh2YNRZEIg ,然后一切工作正常。有人遇到这个问题可以尝试一下。
Thanks guys! I tried all above suggestions but I finally found the problem was the app ID in package.json was too long, I changed from jid0-1Z6ceODTjCn4TmgrrAo3ARAo5J0 to jid1-EGBMRh2YNRZEIg and then everything work fine. Someone has this problem then can give it a try.