Skip to content

Conversation

@LeifWebber
Copy link

我使用的 picgo-plugin-alist 版本:v1.6.0
我使用的 picgo 版本:PicGo - 2.4.0-beta.10

我在使用 picgo 安装插件 picgo-plugin-alist 的时候,总是提示: picgo-plugin-alist load error。 日志文件显示:

------Error Stack Begin------

Error: Cannot find module 'C:\Users\EDY\AppData\Roaming\picgo\node_modules\picgo-plugin-alist\dist\index.cjs'. Please verify that the package.json has a valid "main" entry

at tryPackage (node:internal/modules/cjs/loader:360:19)

at Function.Module._findPath (node:internal/modules/cjs/loader:573:18)

at Module._resolveFilename (node:internal/modules/cjs/loader:926:27)

at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)

at Module._load (node:internal/modules/cjs/loader:785:27)

at Function.c._load (node:electron/js2c/asar_bundle:5:13331)

at Module.require (node:internal/modules/cjs/loader:1012:19)

at require (node:internal/modules/cjs/helpers:94:18)

at Nt.getPlugin (C:\Users\EDY\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:43946)

at Nt.registerPlugin (C:\Users\EDY\AppData\Local\Programs\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:43069)

-------Error Stack End-------

无论是按照 README 提供的方式克隆后使用 npm install,还是直接在 picgo 插件商店安装,情况都如此。

经过我的检查,问题出在插件似乎并不会自动构建生成 dist 目录。我加了一个 prepare 脚本,以期待修复此问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant