大佬们,Linux系统下部署好了SPT-3.9.8,但是安装fika-2.2.8联机mod以后,启动SPT服务报错,应该咋搞?
┌─────────────────────────────────────────┐
│ SPT 3.9.8 │
│ https://discord.sp-tarkov.com │
│ │
│ This work is free of charge │
│ If you paid money, you were scammed │
│ Commercial use is prohibited │
└─────────────────────────────────────────┘
ModLoader: loading: 1 server mods…
Mod: server version: 2.2.8 by: Fika loaded
The application had a critical error and failed to run
Exception produced: Error
Stacktrace:
Error: Cannot find module '/snapshot/workspace/node_modules/tsyringe'
Require stack:
– /home/L/spt-server-ci/spt-server/user/mods/fika-server/src/di/Container.js
– /home/L/spt-server-ci/spt-server/user/mods/fika-server/src/mod.js
– /snapshot/workspace/medusa/spt-server/code/project/obj/loaders/PreSptModLoader.js
– /snapshot/workspace/medusa/spt-server/code/project/obj/controllers/GameController.js
– /snapshot/workspace/medusa/spt-server/code/project/obj/callbacks/GameCallbacks.js
– /snapshot/workspace/medusa/spt-server/code/project/obj/di/Container.js
– /snapshot/workspace/medusa/spt-server/code/project/obj/Program.js
– /snapshot/workspace/medusa/spt-server/code/project/obj/ide/ReleaseEntry.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
at Function.Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/L/spt-server-ci/spt-server/user/mods/fika-server/src/di/Container.ts:1:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._compile (pkg/prelude/bootstrap.js:1894:32)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
Press Enter to close the window
SPT-3.9.8
已配图
是
服务端报错
Please try to replace all instances of the string "/snapshot/project" in the mod folder with "/snapshot/workspace/medusa/spt-server/code/project".