heliosmatoMacBook-Air:node_modules helios$ node
require(’./mysql-libmysqlclient’) Error: Unable to load shared library /Users/helios/node_modules/mysql-libmysqlclient/build/Release/mysql_bindings.node at Object…node (module.js:472:11) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Module.require (module.js:354:17) at require (module.js:370:17) at Object.<anonymous> (/Users/helios/node_modules/mysql-libmysqlclient/mysql-libmysqlclient.js:13:15) at Module._compile (module.js:441:26) at Object…js (module.js:459:10) at Module.load (module.js:348:31) at Function._load (module.js:308:12)
(^C again to quit)
求解答
你重新下个V0.6.12或更高版本的node.js,安装后直接npm install mysql就OK了。
直接npm install mysql 就可以了