试图用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) …