Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help]mac silicon 在picgo的在线商店无法安装 #51

Closed
justincnn opened this issue Jan 14, 2025 · 4 comments
Closed

[help]mac silicon 在picgo的在线商店无法安装 #51

justincnn opened this issue Jan 14, 2025 · 4 comments

Comments

@justincnn
Copy link

justincnn commented Jan 14, 2025

具体错误提示如下:

错误日志:

2025-01-14 20:04:00 [PicGo SUCCESS] 插件安装成功 
2025-01-14 20:04:51 [PicGo ERROR] 
------Error Stack Begin------
Error: Cannot find module '/Users/justin/Library/Application Support/picgo/node_modules/picgo-plugin-s3/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 Nt.getPlugin (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:43922)
    at Nt.registerPlugin (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:43045)
-------Error Stack End------- 
@wayjam
Copy link
Owner

wayjam commented Jan 14, 2025

  1. 进去安装目录 /Users/xxxx/Library/Application Support/picgo 删除 node_modules
  2. 关闭 picgo,重新启动 picgo
  3. 重新安装

@justincnn
Copy link
Author

  1. 进去安装目录 /Users/xxxx/Library/Application Support/picgo 删除 node_modules
  2. 关闭 picgo,重新启动 picgo
  3. 重新安装

还是有错误:

------Error Stack Begin------
Error: Cannot find module '/Users/justin/Library/Application Support/picgo/node_modules/picgo-plugin-s3/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 Nt.getPlugin (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:43922)
    at Nt.registerPlugin (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:43045)
-------Error Stack End------- 

@wayjam
Copy link
Owner

wayjam commented Jan 15, 2025

打包的 package 是有index.js 的 https://www.npmjs.com/package/picgo-plugin-s3?activeTab=code

这个问题我看其他插件也不同程度出现过 Molunerfinn/PicGo#222,目前我看到的解决操作似乎有几种

  1. 安装TS npm install -g typescript
  2. Windows 的管理员权限安装 PicGo

@justincnn
Copy link
Author

justincnn commented Jan 16, 2025

打包的 package 是有index.js 的 https://www.npmjs.com/package/picgo-plugin-s3?activeTab=code

这个问题我看其他插件也不同程度出现过 Molunerfinn/PicGo#222,目前我看到的解决操作似乎有几种

  1. 安装TS npm install -g typescript
  2. Windows 的管理员权限安装 PicGo

Mac下运行了 成功安装了,

npm install -g typescript

但还是同一个错误,

再次感谢大神的协助,准备买个upic,谢谢

@wayjam wayjam closed this as completed Jan 19, 2025
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

No branches or pull requests

2 participants