我試圖與節點JSMySQL集羣節點JS連接錯誤
我的程序
var nosql = require('mysql-js');
var dbProperties = {
"implementation" : "ndb",
"database" : "users"
};
nosql.openSession(dbProperties, null, onSession);
我收到此錯誤連接mysql集羣。
https://dev.mysql.com/doc/ndbapi/en/ndb-nodejs-setup.html
Error: Cannot find module 'mysql-js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
if i try to install with npm install mysql-js i am getting below error
npm http GET https://registry.npmjs.org/mysql-js
npm http 404 https://registry.npmjs.org/mysql-js
npm ERR! 404 'mysql-js' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Maybe try 'npm search mysql'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
是「節點MySQL驅動程序」安裝在你的機器上? –