Skip to content

windows 10 Error: IO error: #2

Description

@an9r0f
export const db = FlowDB.open({
  dataDir: join(process.cwd(), 'database', 'db'),
  createIfMissing: true,
})

if (import.meta.main) {
  console.dir(db, {depth: 1})
}
\node_modules\@restsend\flowdb\index.js:87
    const db = native.FlowDb.open(cfg)
                             ^

Error: IO error: Отказано в доступе. (os error 5)
    at FlowDB.open (\node_modules\@restsend\flowdb\index.js:87:30)
    at file:///database/flowdb.ts:5:26
    at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
    at async node:internal/modules/esm/loader:646:26
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
  code: 'GenericFailure'
}

Node.js v26.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions