Electron and sequelize error: the dialect sqlite is not supported

后端 未结 4 638
情歌与酒
情歌与酒 2021-02-06 03:31

I\'m trying to use sequelize and sqlite with electron in a desktop application but get the following error when running the app via npm start (which runs node

4条回答
  •  滥情空心
    2021-02-06 04:13

    I've run into this error a number of times, and the solution that works for me is to install electron-rebuild, and then run:

    electron-rebuild -w sqlite3 -p
    

    The -p flag here is required for this to work, as sqlite3 uses node-pre-gyp.

提交回复
热议问题