Closed anatoliykmetyuk closed 2 years ago
@anatoliykmetyuk I am not sure exactly what version you are installing, but this appears to be a a very old version of this package (this referenced files that are no longer used, line numbers are gone, and the name of the package "lmdb-store" has changed since then).
The same problem manifests when I do "npm i lmdb"... Any idea why it might be trying to pick the old version or the old file?
I managed to solve the problem. It was caused in the context of a GatsbyJS website, turns out that my invoking the commands from its directory mattered. Invoking the commands from an empty directory worked fine. In the website, turns out that I had a bunch of dependencies specified in package.json
and one of them depended on lmdb
. However for some reason the order in which the dependencies were installed mattered: when I invoked npm i
in my website directory it failed with this error. However when I edited the file to disable all dependencies, then enabled some of them and installed, then enabled even more etc – this gradual approach worked...
I run
npm i lmdb
and get a long error that appears to do with C, and refers me to a log file: 2022-06-05T18_30_01_630Z-debug-0.log. The output is as follows:My Mac specs:
MacBook Pro 15' 2017 macOS Monterey 12.3.1 Node 8.11.0 Xcode 13.4, build version 13F17a