[GH-ISSUE #116] [BUG] <title>Unexpected token ':' #59

Open
opened 2026-10-15 18:06:38 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @KenDoStudios on GitHub (Aug 21, 2025).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/116

Environment

🪟 Windows

System

Edition Windows 11 Pro Version 24H2 Installed on ‎1/‎21/‎2025 OS build 26100.4946 Experience Windows Feature Experience Pack 1000.26100.197.0

Describe the problem

when launching window after installation the window "npm install" appears but it does not do anything for a long time,

then it pops this message:

A critical error has occurred while starting the server: Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\image-q\dist\esm\image-q.mjs' imported from D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules@jimp\plugin-quantize\dist\esm\index.js
Did you mean to import "image-q/dist/cjs/image-q.cjs"?
at finalizeResolution (node:internal/modules/esm/resolve:274:11)
at moduleResolve (node:internal/modules/esm/resolve:859:10)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:783:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:707:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:690:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38)
at ModuleJob._link (node:internal/modules/esm/module_job:183:49) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///D:/sillytavern/SillyTavern-Launcher/SillyTavern/node_modules/image-q/dist/esm/image-q.mjs'
}

double checking this file does exist. but as a .map file please how do i fix it? please note i barely know any code

Image so if its really painfully obvious please don't hold back cuz I'm stupid.l

Additional info

No response

Please tick the boxes

Originally created by @KenDoStudios on GitHub (Aug 21, 2025). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/116 ### Environment 🪟 Windows ### System Edition Windows 11 Pro Version 24H2 Installed on ‎1/‎21/‎2025 OS build 26100.4946 Experience Windows Feature Experience Pack 1000.26100.197.0 ### Describe the problem when launching window after installation the window "npm install" appears but it does not do anything for a long time, then it pops this message: A critical error has occurred while starting the server: Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\image-q\dist\esm\image-q.mjs' imported from D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\@jimp\plugin-quantize\dist\esm\index.js Did you mean to import "image-q/dist/cjs/image-q.cjs"? at finalizeResolution (node:internal/modules/esm/resolve:274:11) at moduleResolve (node:internal/modules/esm/resolve:859:10) at defaultResolve (node:internal/modules/esm/resolve:983:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:783:12) at #cachedDefaultResolve (node:internal/modules/esm/loader:707:25) at ModuleLoader.resolve (node:internal/modules/esm/loader:690:38) at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38) at ModuleJob._link (node:internal/modules/esm/module_job:183:49) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///D:/sillytavern/SillyTavern-Launcher/SillyTavern/node_modules/image-q/dist/esm/image-q.mjs' } double checking this file does exist. but as a .map file please how do i fix it? please note i barely know any code <img width="1508" height="754" alt="Image" src="https://github.com/user-attachments/assets/be150fd1-a7b0-4e8b-a4e1-f62b5c4dc43e" /> so if its really painfully obvious please don't hold back cuz I'm stupid.l ### Additional info _No response_ ### Please tick the boxes - [x] I have explained the issue clearly, and I included all relevant info - [x] I have checked that this [issue hasn't already been raised](https://github.com/SillyTavern/SillyTavern/issues?q=is%3Aissue) - [x] I have checked the [docs](https://docs.sillytavern.app/) ![important](https://img.shields.io/badge/Important!-F6094E)
Author
Owner

@KenDoStudios commented on GitHub (Aug 21, 2025):

changing the nametype of file resulted in this error:

A critical error has occurred while starting the server: SyntaxError: Unexpected token ':'
at compileSourceTextModule (node:internal/modules/esm/utils:346:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:107:18)
at #translate (node:internal/modules/esm/loader:536:12)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:583:27)
at async ModuleJob._link (node:internal/modules/esm/module_job:162:19)

<!-- gh-comment-id:3209722679 --> @KenDoStudios commented on GitHub (Aug 21, 2025): changing the nametype of file resulted in this error: A critical error has occurred while starting the server: SyntaxError: Unexpected token ':' at compileSourceTextModule (node:internal/modules/esm/utils:346:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:107:18) at #translate (node:internal/modules/esm/loader:536:12) at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:583:27) at async ModuleJob._link (node:internal/modules/esm/module_job:162:19)
Author
Owner

@KenDoStudios commented on GitHub (Aug 21, 2025):

auto repair enabled resulted in nothing after several minute, application hitch
[ 5:27:05.34] [INFO] Running Node.js in: production
[ 5:27:05.34] [INFO] Started process with PID: "26124"
DEBUG: Entered the YES block
[ 5:27:05.43] [INFO] Auto-repair process enabled [this can be toggled in the troubleshooting menu].
[ 5:27:05.43] [INFO] SillyTavern opened in a new window.
[ 5:27:05.44] [INFO] Waiting for 30 seconds for SillyTavern to fully launch...
[ 5:27:08.20] [INFO] Log file found, scanning log for errors...

<!-- gh-comment-id:3209764792 --> @KenDoStudios commented on GitHub (Aug 21, 2025): auto repair enabled resulted in nothing after several minute, application hitch [ 5:27:05.34] [INFO] Running Node.js in: production [ 5:27:05.34] [INFO] Started process with PID: "26124" DEBUG: Entered the YES block [ 5:27:05.43] [INFO] Auto-repair process enabled [this can be toggled in the troubleshooting menu]. [ 5:27:05.43] [INFO] SillyTavern opened in a new window. [ 5:27:05.44] [INFO] Waiting for 30 seconds for SillyTavern to fully launch... [ 5:27:08.20] [INFO] Log file found, scanning log for errors...
Author
Owner

@deffcolony commented on GitHub (Aug 21, 2025):

@KenDoStudios im going to have to reference you to a earlier issue with the solution attached... Please follow that

https://github.com/SillyTavern/SillyTavern-Launcher/issues/87#issuecomment-2511126698

<!-- gh-comment-id:3210425555 --> @deffcolony commented on GitHub (Aug 21, 2025): @KenDoStudios im going to have to reference you to a earlier issue with the solution attached... Please follow that https://github.com/SillyTavern/SillyTavern-Launcher/issues/87#issuecomment-2511126698
Author
Owner

@KenDoStudios commented on GitHub (Aug 24, 2025):

@KenDoStudios im going to have to reference you to a earlier issue with the solution attached... Please follow that

#87 (comment)
after following the instuctions restarted ST

npm error code ENOTEMPTY
npm error syscall rmdir
npm error path D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\lodash
npm error errno -4051
npm error ENOTEMPTY: directory not empty, rmdir 'D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\lodash'
npm error A complete log of this run can be found in: C:\Users\Kenne\AppData\Local\npm-cache_logs\2025-08-24T13_55_04_486Z-debug-0.log

<!-- gh-comment-id:3218120395 --> @KenDoStudios commented on GitHub (Aug 24, 2025): > [@KenDoStudios](https://github.com/KenDoStudios) im going to have to reference you to a earlier issue with the solution attached... Please follow that > > [#87 (comment)](https://github.com/SillyTavern/SillyTavern-Launcher/issues/87#issuecomment-2511126698) after following the instuctions restarted ST npm error code ENOTEMPTY npm error syscall rmdir npm error path D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\lodash npm error errno -4051 npm error ENOTEMPTY: directory not empty, rmdir 'D:\sillytavern\SillyTavern-Launcher\SillyTavern\node_modules\lodash' npm error A complete log of this run can be found in: C:\Users\Kenne\AppData\Local\npm-cache\_logs\2025-08-24T13_55_04_486Z-debug-0.log
Author
Owner

@KenDoStudios commented on GitHub (Aug 28, 2025):

hey bro i tried the method you suggested, and im still getting issues

<!-- gh-comment-id:3231740891 --> @KenDoStudios commented on GitHub (Aug 28, 2025): hey bro i tried the method you suggested, and im still getting issues
Sign in to join this conversation.
No description provided.