小编Man*_*ngh的帖子

Compoundjs无法使用jugglingdb-mysql运行

试图用mysql测试compoundjs但它失败了.

我的系统是Debian 7,其中包含以下版本的nodejs和npm

$ node -v
v0.10.13

$ npm -v
1.3.4

这是我安装compoundjs的方法

sudo npm install -g compound
sudo npm install -g jugglingdb --save
sudo npm install -g jugglingdb-mysql

compound init testapp --db mysql
cd testapp
npm install
$ node server.js

WARNING: JugglingDB adapter "mysql" is not installed,
so your models would not work, to fix run:

    npm install jugglingdb-mysql


/srv/www/playground/node/testapp/node_modules/jugglingdb/lib/railway.js:55
        if (!schema.adapter) throw new Error('Adapter is not defined');
                                   ^
Error: Adapter is not defined
    at init (/srv/www/playground/node/testapp/node_modules/jugglingdb/lib/railway.js:55:36)
    at CompoundServer.initialize (/srv/www/playground/node/testapp/node_modules/jugglingdb/index.js:31:19) …

mysql node.js compoundjs jugglingdb

5
推荐指数
1
解决办法
766
查看次数

标签 统计

compoundjs ×1

jugglingdb ×1

mysql ×1

node.js ×1