因此,我刚刚开始在山狮的节点和npm,并一直跟踪node和运行图书与数据库(http://chimera.labs.oreilly.com/books/1234000001808/ch06.html#mysql)工作。
当我尝试sudo安装-g db时,我得到了以下消息:
npm ERR! db-mysql@0.7.6 install: `node-waf configure build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the db-mysql@0.7.6 install script.
npm ERR! This is most likely a problem with the db-mysql package,
npm ERR! not with npm itself.我试过看看其他人是否遇到过这种情况。我发现的大多数答案都集中在其他安装(During npm install socket.io I get error 127, node-waf command not found. How to solve it?)上,指向Ubuntu (或Windows)用户,或者只是提倡安装mysql驱动程序(How to install nodejs modules on windows7?)。
我得到的最接近的解决方案是项目发布线程中的这个解决方案,只需克隆源并用node:https://github.com/mariano/node-db-mysql/issues/98替换节点-waf。但是,线程是为ArchLinux启动的,在解决方案的最后一步,用户在山狮上遇到了一个错误。
在实践中,db-mysql和mysql驱动程序之间是否存在显著差异?这是唯一的选择吗?如果有理由使用db-mysql,我如何解决山狮上的安装问题?
发布于 2013-12-05 15:58:36
我选择节点-mysql作为驱动程序,我发现:
https://stackoverflow.com/questions/20393226
复制相似问题