AntSwordProject / antSword

中国蚁剑是一款跨平台的开源网站管理工具。AntSword is a cross-platform website management toolkit.
https://www.yuque.com/antswordproject/antsword
MIT License
3.62k stars 573 forks source link

Mime 库大小写导致 Ubuntu、Kali 下载入报错 #318

Closed atomxw closed 2 years ago

atomxw commented 2 years ago

ubuntu、kali下载入报错,很多js不兼容。

yzddmr6 commented 2 years ago
  1. 贴一下报错详情
  2. 按照文档的安装方式,不要npm install
ppofp commented 2 years ago

我的也报错,我贴吧 A JavaScript error occurred in the main process Uncaught Exception Error: Cannot find module at Module . _ resolueFilenane ( internal / nodules / c j s / loader.js:584:15) at Function. Module. resolueFilename(/AntSword-Loader-u4.0.3-linux-x64/ resources/electron.asar/connon/reset-search-paths.js:43:12) at Function. Module. load(internal/nodules/cjs/ loader.js:510:25) at Hodule.require(internal/nodules/cjs/loader.js: 640:17) at require(internal/nodules/cjs/helpers.js:20:18) at object . (/AntSword-Loader-u4.0.3-linux-x64/antSuord/node_nodules/ mine/index.js:3:12) at object.(/AntSword-Loader-u4.0.3-linux-x64/antSuord/nodenodules/ mine/index.js:6:3) pile(internal/nodules/cjs/loader.js: 693:30)Hodule. at Object . Module . extensions . . js ( internal / nodules / c j s / loader.js:704:10 at Hodule. load(internal/nodules/cjs/loader.js:602:32)

atomxw commented 2 years ago

楼上这么仁兄已经贴了,我就不贴了,应该是AntSword-Loader-u4.0.3-linux-x64加载器不兼容[AntSword v2.1.15。

atomxw commented 2 years ago

楼上这么仁兄已经贴了,我就不贴了,应该是AntSword-Loader-u4.0.3-linux-x64加载器不兼容[AntSword v2.1.15。

Medicean commented 2 years ago

@atomxw @ppofp 已经定位到问题是由于 mime 库自身大小写的问题导致的,可以先这么操作:

cd antsword/
mv node_modules/mime/mime.js node_modules/mime/Mime.js
atomxw commented 2 years ago

其实还有几个问题,设置代理后,打开插件市场无响应,点击蚁剑主界面的“退出程序”,无效果。

atomxw commented 2 years ago

点击蚁剑主界面的“x”关闭按钮,无效果。

Medicean commented 2 years ago

点击蚁剑主界面的“x”关闭按钮,无效果。

这个问题可能是和所用的 electron 版本有关,未来解决,暂时可以右键托盘图标关闭