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

加载插件出现报错 #1

Open
aknyzsd opened this issue Aug 12, 2024 · 4 comments
Open

加载插件出现报错 #1

aknyzsd opened this issue Aug 12, 2024 · 4 comments

Comments

@aknyzsd
Copy link

aknyzsd commented Aug 12, 2024

错误如下(已安装Euphony)
{A56D997F-D7F5-4127-B9D3-6F4D1FE7FF1C}

[Main] Cannot find module 'express'
Require stack:

  • C:\Users\Administrator\Documents\LiteloaderQQNT\plugins\Arknights_Plugin-v1.0.1\src\main.js
  • C:\Users\Administrator\LiteLoaderQQNT-main\src\loader_core\main.js
  • C:\Users\Administrator\LiteLoaderQQNT-main\src\main.js
  • C:\Users\Administrator\LiteLoaderQQNT-main\src\init.js
  • C:\Program Files\Tencent\QQNT\resources\app\app_launcher\index.js

Error: Cannot find module 'express'
Require stack:

  • C:\Users\Administrator\Documents\LiteloaderQQNT\plugins\Arknights_Plugin-v1.0.1\src\main.js
  • C:\Users\Administrator\LiteLoaderQQNT-main\src\loader_core\main.js
  • C:\Users\Administrator\LiteLoaderQQNT-main\src\main.js
  • C:\Users\Administrator\LiteLoaderQQNT-main\src\init.js
  • C:\Program Files\Tencent\QQNT\resources\app\app_launcher\index.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:1152:15)
    at s._resolveFilename (node:electron/js2c/browser_init:2:120699)
    at Module._load (node:internal/modules/cjs/loader:993:27)
    at f._load (node:electron/js2c/node_init:2:18640)
    at Module.require (node:internal/modules/cjs/loader:1240:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (C:\Users\Administrator\Documents\LiteloaderQQNT\plugins\Arknights_Plugin-v1.0.1\src\main.js:15:17)
    at Module._compile (node:internal/modules/cjs/loader:1373:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
    at Module.load (node:internal/modules/cjs/loader:1215:32)
@Ark-Aak
Copy link
Owner

Ark-Aak commented Aug 24, 2024

在插件目录中执行 npm install 再试试?

@aknyzsd
Copy link
Author

aknyzsd commented Sep 8, 2024

貌似其他依赖euphoy的插件也出现上述问题
yuyumoko/LiteLoaderQQNT-Plugin-Eencode#14 (comment)

@Viomeat
Copy link

Viomeat commented Nov 4, 2024

在插件目录中执行 npm install 再试试?

E:\NTQQ\resources\app\LiteLoaderQQNT\plugins\arknights_plugin>npm install

up to date, audited 1 package in 536ms

found 0 vulnerabilities

@aknyzsd
Copy link
Author

aknyzsd commented Nov 12, 2024

PS C:\Users\Administrator\Documents\LiteloaderQQNT\plugins\Arknights_Plugin-v1.0.1> npm install
npm error code ENOENT
npm error syscall open
npm error path C:\Users\Administrator\Documents\LiteloaderQQNT\plugins\Arknights_Plugin-v1.0.1\package.json
npm error errno -4058
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\Administrator\Documents\LiteloaderQQNT\plugins\Arknights_Plugin-v1.0.1\package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2024-11-12T10_32_11_620Z-debug-0.log
emmm......是不是Adminstrator的锅

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

3 participants