kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
482 stars 39 forks source link

`No such file or directory` with non-ASCII character in path #144

Closed mischnic closed 2 years ago

mischnic commented 2 years ago
  1. Create & cd into a folder named Benoît
  2. Add this script inside of that folder
    const { open } = require("lmdb"); // or require
    let myDB = open(__dirname + "/.parcel-cache", {
    name: "parcel-cache",
    compression: true,
    });
  3. 
    Benoît/node_modules/lmdb/dist/index.cjs:1943
        lmdbError(rc);
        ^

Error: No such file or directory at open (Benoît/node_modules/lmdb/dist/index.cjs:1943:3) at Object. (Benoît/x.js:2:12) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 2 }

kriszyp commented 2 years ago

Fix published in v2.2.4 (hopefully).

mischnic commented 2 years ago

Thanks!