Get Error : /node_modules/mariasql/lib/Client.js:34 on OSX
server spec: OSX 10.10.5 nginx : Ver 1.8.0 mariadb : Ver 15.1 Distrib 10.0.21-MariaDB, for osx10.10 (x86_64) using readline 5.1
I try to run my node server. but I got an error.. that's below:
$ node app.js
/../nodetServer/node_modules/mariasql/lib/Client.js:34
this._handle = new binding({
^
TypeError: undefined is not a function
at new Client (/../nodetServer/node_modules/mariasql/lib/Client.js:34:18)
at Object.
[source code] app.js
var mariasql = require('mariasql');
global.m_sql = new mariasql( { // line 40
host: 'localhost',
user: 'root',
password: '123',
db: 'test_db'
});
I want to solution..
What version of node did you use to install? Also what compiler and compiler version are you using?