我正在尝试将 mysql 集群与节点 js 连接
我的程序
var nosql = require('mysql-js');
var dbProperties = {
"implementation" : "ndb",
"database" : "users"
};
nosql.openSession(dbProperties, null, onSession);
我收到此错误。
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.