typicode / lowdb

Simple and fast JSON database
MIT License
21.35k stars 918 forks source link

After the electron project (electron version 12) NPM I lowdb -- save created by vuecli is installed, the reference prompt is still not installed, but node_ Modules do exist, as do package.json ' "lowdb": "^3.0.0",' #525

Closed sunny-fun closed 2 years ago

sunny-fun commented 2 years ago

After the electron project (electron version 12) NPM I lowdb -- save created by vuecli is installed, the reference prompt is still not installed, but node_ Modules do exist, as do package.json ' "lowdb": "^3.0.0",'

ERROR Failed to compile with 1 error 02:17:12 This dependency was not found: * lowdb in ./src/main.js To install it, you can run: npm install --save lowdb

typicode commented 2 years ago

Hi,

I don't see what can be done on lowdb's side. Try running npm install --save lowdb or npm install

AimForNaN commented 2 years ago

I had to add "main": "./lib/index.js", to lowdb's package.json. Then do the exact same to steno's package.json.