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

安装失败 #18

Open
AIEOV opened this issue May 30, 2023 · 1 comment
Open

安装失败 #18

AIEOV opened this issue May 30, 2023 · 1 comment

Comments

@AIEOV
Copy link

AIEOV commented May 30, 2023

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
安装完成, 正在启动面板
面板启动失败
● nekonekostatus-dashboard.service - nekonekostatus
Loaded: loaded (/etc/systemd/system/nekonekostatus-dashboard.service; enabled; vendor preset: >
Active: activating (auto-restart) (Result: exit-code) since Tue 2023-05-30 09:40:33 UTC; 2s ago
Process: 27407 ExecStart=/root/nekonekostatus/nekonekostatus.js (code=exited, status=1/FAILURE)
Main PID: 27407 (code=exited, status=1/FAILURE)
CPU: 127ms

May 30 09:40:33 instance-20230526-1750 systemd[1]: nekonekostatus-dashboard.service: Failed with re>

@SakuraSakuraSakuraChan
Copy link

一样的情况,查看日志:

Oct 21 00:58:43 Hehehe nekonekostatus.js[15673]: requireStack: [ '/root/nekonekostatus/nekonekostatus.js' ]
Oct 21 00:58:43 Hehehe nekonekostatus.js[15673]: }
Oct 21 00:58:43 Hehehe nekonekostatus.js[15673]: Node.js v21.0.0
Oct 21 00:58:43 Hehehe systemd[1]: nekonekostatus-dashboard.service: Main process exited, code=exited, status=1/FAILURE
Oct 21 00:58:43 Hehehe systemd[1]: nekonekostatus-dashboard.service: Failed with result 'exit-code'.
Oct 21 00:58:48 Hehehe systemd[1]: nekonekostatus-dashboard.service: Scheduled restart job, restart counter is at 48.
Oct 21 00:58:48 Hehehe systemd[1]: Stopped nekonekostatus.
Oct 21 00:58:48 Hehehe systemd[1]: Started nekonekostatus.
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: node:internal/modules/cjs/loader:1141
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: throw err;
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: ^
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: Error: Cannot find module 'express'
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: Require stack:
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: - /root/nekonekostatus/nekonekostatus.js
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module._resolveFilename (node:internal/modules/cjs/loader:1138:15)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module._load (node:internal/modules/cjs/loader:979:27)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module.require (node:internal/modules/cjs/loader:1229:19)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at require (node:internal/modules/helpers:177:18)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Object. (/root/nekonekostatus/nekonekostatus.js:3:15)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module._compile (node:internal/modules/cjs/loader:1369:14)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module.load (node:internal/modules/cjs/loader:1201:32)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Module._load (node:internal/modules/cjs/loader:1017:12)
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:122:12) {
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: code: 'MODULE_NOT_FOUND',
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: requireStack: [ '/root/nekonekostatus/nekonekostatus.js' ]
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: }
Oct 21 00:58:48 Hehehe nekonekostatus.js[15683]: Node.js v21.0.0
Oct 21 00:58:48 Hehehe systemd[1]: nekonekostatus-dashboard.service: Main process exited, code=exited, status=1/FAILURE
Oct 21 00:58:48 Hehehe systemd[1]: nekonekostatus-dashboard.service: Failed with result 'exit-code'.

使用 nmp install express 后,再次启动,依然报错,这次是缺少 md5,使用 nmp install md5,还是缺件,大概这么持续了5个回合后,缺少的那个部分无法使用 nmp install 命令安装了

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