lizhuangs / picgo-plugin-gitee-uploader

picgo uploader for gitee
MIT License
40 stars 8 forks source link

[BUG]怎么解决index.js文件缺失的问题 #21

Open BILL-SUN521 opened 1 month ago

BILL-SUN521 commented 1 month ago

描述bug uploader一直安装不上 根据日志文件是因为index.js的缺失

步骤 无论用命令行,软件还是上传本地文件都装不上。Picgo版本2.3.1,x64的。

日志文件的错误 ------Error Stack Begin------ Error: Cannot find module 'C:\Users\sunwedone\AppData\Roaming\picgo\node_modules\picgo-plugin-gitee-uploader\dist\index.js'. 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 gt.getPlugin (D:\Program Files\picgo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:40557) at gt.registerPlugin (D:\Program Files\picgo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:39680) -------Error Stack End-------