Compoundjs无法与jugglingdb-mysql一起运行

试图用mysqltestingcompoundjs,但是失败了。

我的系统是Debian 7,具有以下版本的nodejs&npm

 $ node -v
 v0.10.13

 $ npm -v
 1.3.4

这是我如何安装compoundjs

 sudo npm install -g复合
 sudo npm install -g jugglingdb --save
 sudo npm install -g jugglingdb-mysql

复合inittesting应用程序 -  db mysql
光盘testapp
 npm安装 
 $ node server.js

警告:JugglingDB适配器“mysql”没有安装,
所以你的模型将无法正常运行:

     npm安装jugglingdb-mysql


 /srv/www/playground/node/testapp/node_modules/jugglingdb/lib/railway.js:55
        如果(!schema.adapter)抛出新的错误('适配器未定义');
                                    ^
错误:适配器未定义
    在init(/srv/www/playground/node/testapp/node_modules/jugglingdb/lib/railway.js:55:36)
    在CompoundServer.initialize(/srv/www/playground/node/testapp/node_modules/jugglingdb/index.js:31:19)
    在CompoundServer.EventEmitter.emit(events.js:98:17)
    在CompoundServer.initCompound(/srv/www/playground/node/testapp/node_modules/compound/lib/compound.js:123:14)
    在CompoundServer.initCompoundServer [as init](/srv/www/playground/node/testapp/node_modules/compound/lib/server/compound.js:53:29)
    在/srv/www/playground/node/testapp/node_modules/compound/lib/compound.js:67:18
    在process._tickCallback(node.js:415:13)
    在Function.Module.runMain(module.js:499:11)
    在启动(node.js:119:16)
    在node.js:901:3

得到上面的错误后,我试着npm install jugglingdb-mysql我仍然得到相同的错误。 我已经尝试安装jugglingdb和jugglingdb-mysql全局和本地(不带-g)。 我不断收到相同的错误。

这个bug是由jugglingdb-mysql的npm存放中使用的jugglingdb版本引起的,所以修复它的唯一方法是删除目录并复制你在主项目中使用的目录:

 cd $YOUR_PROJECT_ROOT rm -rf node_modules/jugglingdb-mysql/node_modules/jugglingdb cp -R node_modules/jugglingdb node_modules/jugglingdb-mysql/node_modules 

我还没有尝试从github手动安装适配器,也许它也可以。

问题在这里报告https://github.com/jugglingdb/mysql-adapter/issues/46