简体   繁体   English

NodeJS + AppJS + Sqlite3

[英]NodeJS + AppJS + Sqlite3

I am trying to build the SQLite3 module into my project. 我正在尝试将SQLite3模块构建到我的项目中。 If I run NPM install sqlite3 it fails. 如果我运行NPM安装sqlite3它失败了。 Here is my npm-debug.log relevant: 这是我的npm-debug.log相关:

235 info install sqlite3@2.1.5
236 verbose unsafe-perm in lifecycle true
237 silly exec cmd "/c" "node-gyp rebuild"
238 silly cmd,/c,node-gyp rebuild,C:\NodeWorkbench\AppJS Workspace\template\data\node_modules\sqlite3 spawning
239 info sqlite3@2.1.5 Failed to exec install script
240 info C:\NodeWorkbench\AppJS Workspace\template\data\node_modules\sqlite3 unbuild
241 verbose from cache C:\NodeWorkbench\AppJS Workspace\template\data\node_modules\sqlite3\package.json
242 info preuninstall sqlite3@2.1.5
243 info uninstall sqlite3@2.1.5
244 verbose true,C:\NodeWorkbench\AppJS Workspace\template\data\node_modules,C:\NodeWorkbench\AppJS Workspace\template\data\node_modules unbuild sqlite3@2.1.5
245 info postuninstall sqlite3@2.1.5
246 error sqlite3@2.1.5 install: `node-gyp rebuild`
246 error `cmd "/c" "node-gyp rebuild"` failed with 1
247 error Failed at the sqlite3@2.1.5 install script.
247 error This is most likely a problem with the sqlite3 package,
247 error not with npm itself.
247 error Tell the author that this fails on your system:
247 error     node-gyp rebuild
247 error You can get their info via:
247 error     npm owner ls sqlite3
247 error There is likely additional logging output above.
248 error System Windows_NT 6.1.7600
249 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sqlite3"
250 error cwd C:\NodeWorkbench\AppJS Workspace\template\data
251 error node -v v0.8.14
252 error npm -v 1.1.65
253 error code ELIFECYCLE
254 verbose exit [ 1, true ]

I have node-gyp installed, as well as python (3.3 I believe). 我安装了node-gyp,以及python(我相信3.3)。 Thanks for the help. 谢谢您的帮助。 I really need this resolved ASAP, so if you could point me in a direction I would appreciate it greatly! 我真的需要尽快解决这个问题,所以如果你能指出我的方向,我会非常感激!

Ideally, I would like to use Nano and couchdb for my project. 理想情况下,我想在我的项目中使用Nano和couchdb。 JSON from front to back would be great. 从前到后的JSON会很棒。 But nano was throwing C++ exceptions during run time so I had to recompile the stack and start over (it recompiled AppJS when I installed nano which I assume put some faulty extensions in and messed up the whole works) My stack is as follows: 但nano在运行时抛出C ++异常,所以我不得不重新编译堆栈并重新开始(当我安装nano时重新编译AppJS,我假设放入了一些错误的扩展并弄乱了整个工作)我的堆栈如下:

Database > AppJS (NodeJS included in this) > SocketIO > AngularJS 数据库> AppJS(包含在此中的NodeJS)> SocketIO> AngularJS

The point of this project is to assemble a stack that I can use as a replacement for server2go. 这个项目的目的是组装一个堆栈,我可以用它来代替server2go。 My company has had severe stability issues regarding server2go, including data loss and DB corruption (MyISAM with MySQL). 我的公司在server2go上遇到了严重的稳定性问题,包括数据丢失和数据库损坏(MyISAM with MySQL)。

Found a great solution. 找到了很好的解决方案 Persist works perfectly with AppJS, and has a great non-blocking sqlite3 driver. 坚持与AppJS完美配合,并拥有一个非常好的非阻塞sqlite3驱动程序。 Just in case anyone else was wondering 以防万一其他人在想

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM