找不到 express-pouchdb 相关模块 [英] express-pouchdb relative module was not found
问题描述
我正在用 Electron、Vue、Typescript 和 rxdb 构建一个项目.一旦我添加了 express-pouchdb 包,我就会收到消息:
I am building a project with Electron, Vue, Typescript and rxdb. As soon as I add the express-pouchdb package I get the message:
未找到此相关模块:
- ../../package 在 ./node_modules/express-pouchdb/lib/routes/root.js
尝试构建项目时.
操作系统为 MacOS 10.15.3
The operating system is a MacOS 10.15.3
推荐答案
该模块不久前移至 pouchdb-server,现在位于:
That module was moved to pouchdb-server a while ago and is now at:
https://github.com/pouchdb/pouchdb-server
但如果您不打算构建服务器,那么还有其他更合适的 PouchDb 库.我使用 pouchdb-node 编写与 CouchDb 对话的 Node.js 例程:
but if you are not trying to build a server then there are other PouchDb libraries that are more appropriate. I use pouchdb-node for writing Node.js routines that talk to CouchDb:
https://www.npmjs.com/package/pouchdb-node
所以这对于 Electron 应用来说可能是更好的选择.
so this might be a better choice for an Electron app.
也可能是您的路线中的相对路径错误 - 我也发生过这种情况 - 但我无法从您提供给我们的信息中判断出来.
It may also be that your relative path is wrong in your route - that has happened to me too - but I can't tell from the information you gave us.
这篇关于找不到 express-pouchdb 相关模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!