I am trying to connect mysql cluster with node js
My program
var nosql = require('mysql-js');
var dbProperties = {
"implementation" : "ndb",
"database" : "users"
};
nosql.openSession(dbProperties, null, onSession);
I am getting this error.
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.