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

Crashes on fresh install because of missing folders #130

Closed
daanbouwman19 opened this issue Oct 29, 2024 · 0 comments · Fixed by #135
Closed

Crashes on fresh install because of missing folders #130

daanbouwman19 opened this issue Oct 29, 2024 · 0 comments · Fixed by #135
Assignees

Comments

@daanbouwman19
Copy link

daanbouwman19 commented Oct 29, 2024

The application doesn't seem to create the required files and folders on first launch which causes it to crash.

`[Nest] 23888 - 2024-10-29 12:27:27 WARN Could not get documents path via WinAPI, trying alternate method
[Nest] 23888 - 2024-10-29 12:27:27 WARN Error: Failed to find My Documents folder
pkg/prelude/bootstrap.js:1872
throw error;
^

Error: ENOENT: no such file or directory, mkdir 'C:\Users\daanb\OneDrive\Documenten\FlyByWireSim'

  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 Object.mkdirSync (node:fs:1394:3)
    at Object.mkdirSync (pkg/prelude/bootstrap.js:1639:33)
    at C:\snapshot\simbridge\node_modules\file-stream-rotator\FileStreamRotator.js:669:24
    at Array.reduce ()
    at mkDirForFile (C:\snapshot\simbridge\node_modules\file-stream-rotator\FileStreamRotator.js:656:27)
    at Object.getStream (C:\snapshot\simbridge\node_modules\file-stream-rotator\FileStreamRotator.js:532:5)
    at new DailyRotateFile (C:\snapshot\simbridge\node_modules\winston-daily-rotate-file\daily-rotate-file.js:80:57)
    at Object. (C:\snapshot\simbridge\dist\config\winston.service.js)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10) {
    errno: -4058,
    syscall: 'mkdir',
    code: 'ENOENT',
    path: 'C:\Users\daanb\OneDrive\Documenten\FlyByWireSim\',
    pkg: true
    }

Node.js v18.5.0`

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

Successfully merging a pull request may close this issue.

2 participants