我正在尝试将 Node.js 与 MariaDB
连接起来。使用 npm 安装 mariasql
包时抛出错误。
npm install mariasql
错误
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\xyz\Desktop\rtrt\am2\node_modules\mariasql\build\deps\libmariadbclient\zlib\zlib.vcxproj]
备注:
Windows 7
Node .js - 0.10.24
最佳答案
您将需要 Visual C++(不确定是哪个版本)来下载和构建此模块。事实上,对于大多数非纯 JS 模块的 npm 模块,建议使用 linux 机器进行开发和部署,因为大多数这些模块都是在 linux 构建工具上构建的,并且可以在 linux 环境中正常工作.
关于node.js - 错误 - 使用 npm 安装 mariasql 包 - node.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20740253/