Skip to content

Error - 'directory does not exist' #165

@Lanxtot

Description

@Lanxtot

Hello. I'm having trouble setting up gtfs-to-html. I'm running it through Git Bash on Windows 11, and it spits out an error. I have already updated Node.js from 20.8.0 using nvm (as it was saying that it was incompatible), and am using config copied from the sample, with the URL changed to https://www.visimarsrutai.lt/gtfs/VilniausR.zip and the agencyKey to VilniausR. This is the error:

`C:\Users\gedim\gtfs-to-html\node_modules\better-sqlite3\lib\database.js:65
throw new TypeError('Cannot open database because the directory does not exist');
^

TypeError: Cannot open database because the directory does not exist
at new Database (C:\Users\gedim\gtfs-to-html\node_modules\better-sqlite3\lib\database.js:65:9)
at setupDb (file:///C:/Users/gedim/gtfs-to-html/node_modules/gtfs/lib/db.js:10:14)
at openDb (file:///C:/Users/gedim/gtfs-to-html/node_modules/gtfs/lib/db.js:31:12)
at file:///C:/Users/gedim/gtfs-to-html/app/index.js:43:3
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)

Node.js v20.11.0`

I have little experience with running node apps, so I may be doing something trivial wrong, perhaps installing it incorrectly. I have played around with the config, looked at the files in question, deleted the folder and git clone'd it numerous times, always leading to the same error. Help would be really appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions