Chrome扩展程序警告“无法使用文件名或目录名Thumbs.db加载扩展程序.该文件名是非法的. [英] Chrome extension warns "Cannot load extension with file or directory name Thumbs.db. The filename is illegal."

查看:547
本文介绍了Chrome扩展程序警告“无法使用文件名或目录名Thumbs.db加载扩展程序.该文件名是非法的.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我使用"解压后加载"测试我的自定义Chrome扩展程序时,都会收到错误消息:

Whenever I use "load unpacked" to test my custom Chrome extension, I get an error:

尝试安装此扩展程序时出现警告:

There were warnings when trying to install this extension:

  • 无法使用文件名或目录名Thumbs.db加载扩展名.文件名是非法的.

我正在通过以下方式测试我的扩展程序:

I am testing my extension by:

  • 打开Chrome的扩展程序页面(chrome://extensions)
  • 确保在右上角启用了"开发人员模式"
  • 点击"加载解压缩",然后选择我的扩展程序文件夹.
  • Opening Chrome's extensions page (chrome://extensions)
  • Ensuring "Developer mode" is enabled in the top-right corner
  • Clicking "Load unpacked" and selecting my extension folder.

我的扩展名文件夹中没有看到Thumbs.db,所以我不确定警告的含义.

I don't see Thumbs.db in my extension folder, so I'm not sure what the warning is for.

推荐答案

打开Windows的文件夹选项",然后选择查看"标签.在高级设置"下,选择显示隐藏的文件,文件夹和驱动器",然后选择确定".

Open Windows 'Folder Options' and select the 'View' tab. Under 'Advanced Settings', select 'Show hidden files, folders, and drives' then select 'OK'.

执行此操作将在文件夹中显示Thumbs.db文件,您在其中保存与扩展名相关的图片/图标.删除它.

Doing this will show the Thumbs.db file inside the folder where you are keeping pictures/icons relevant to your extension. Delete it.

为防止再次创建Thumbs.db,我认为,将文件夹类型设置为常规项"应该可以解决问题.

To prevent creation of Thumbs.db again, I reckon, setting the folder type to 'General Items' should do the trick.

这篇关于Chrome扩展程序警告“无法使用文件名或目录名Thumbs.db加载扩展程序.该文件名是非法的.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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