npm install mysql-libmysqlclient field
发布于 1年前 作者 wangmingle 517 次浏览

node-gyp rebuild

/bin/sh: mysql_config: command not found gyp: Call to ‘mysql_config --libs_r’ returned exit status 127. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/Cellar/node/0.10.21/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:424:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Darwin 11.4.2 gyp ERR! command “node” “/usr/local/Cellar/node/0.10.21/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/miller/nodeprojects/kt239_api/branch/v1.5.3.1/node_modules/mysql-libmysqlclient gyp ERR! node -v v0.10.21 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0

3 回复

mysql_config: command not found ???

问题不是出在这个命令上吗?

谢谢 安装mysql service可以了

回到顶部