错误:找不到模块 ode_modulessqlite3libindingelectron-v8.0-win32-x64 ode_sqlite3.node'

Error: Cannot find module ode_modulessqlite3libindingelectron-v8.0-win32-x64ode_sqlite3.node#39;(错误:找不到模块 ode_modulessqlite3libindingelectron-v8.0-win32-x64ode_sqlite3.node)
本文介绍了错误:找不到模块 ode_modulessqlite3libindingelectron-v8.0-win32-x64 ode_sqlite3.node'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在电子 8.1 中安装 sqlite3 时遇到问题我收到以下错误

I have trouble with installing sqlite3 in electron 8.1 I got following errors

Error: Cannot find module 'D:TASK(2020.1.1~)AMS
ode_modulessqlite3libindingelectron-v8.1-win32-x64
ode_sqlite3.node'
Require stack:
- D:TASK(2020.1.1~)AMS
ode_modulessqlite3libsqlite3.js
- D:TASK(2020.1.1~)AMSmain.js
- D:TASK(2020.1.1~)AMS
ode_moduleselectrondist
esourcesdefault_app.asarmain.js
-
    at Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
    at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7595:16)
    at Module._load (internal/modules/cjs/loader.js:691:27)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (D:TASK(2020.1.1~)AMS
ode_modulessqlite3libsqlite3.js:4:15)
    at Module._compile (internal/modules/cjs/loader.js:968:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)

我安装了 npm install sqlite3 --build-from-source --runtime=electron --target=8.0.2 --dist-url=https://atom.io/download/electron但没有运气.请帮我.

I installed npm install sqlite3 --build-from-source --runtime=electron --target=8.0.2 --dist-url=https://atom.io/download/electron But no luck. Please help me.

推荐答案

终于想通了,解决了.需要关注

Finally, I figured out and solved. needed to followings

"scripts": {
    "start": "electron .",
    "postinstall": "electron-builder install-app-deps",
    "package": "electron-packager . --production"
  },

之后,npm run postinstall它对我有用.

这篇关于错误:找不到模块 ode_modulessqlite3libindingelectron-v8.0-win32-x64 ode_sqlite3.node'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
FastAPI + Tortoise ORM + FastAPI Users (Python) - Relationship - Many To Many(FastAPI+Tortoise ORM+FastAPI用户(Python)-关系-多对多)
How to get insertId for MySQL using Mysql2 in Node with async and pool?(如何在带异步和池的Node中使用Mysql2获取MySQL的InsertID?)
How to make node.js mysql connection pooling available on startup(如何使node.js MySQL连接池在启动时可用)
Window functions not working in pd.read_sql; Its shows error(窗口函数在pd.read_sql中不起作用;它显示错误)
(Closed) Leaflet.js: How I can Do Editing Geometry On Specific Object I Select Only?((已关闭)Leaflet.js:如何仅在我选择的特定对象上编辑几何图形?)