我在Node.js中找不到lib ldap-client。
我使用这个页面的https://github.com/nodejs/node-gyp来帮助解决这个问题。
我安装了python、node-gyp、Visual Studio 2015。
所有用于LDAP连接的包都有这个问题。
我在Windows 7上工作。
这是我的package.json
{
"name": "taakapis",
"version": "0.0.0",
"private": true,
"main": "app.js",
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"body-parser": "latest",
"cookie-parser": "latest",
"debug": "latest",
"express": "latest",
"jade": "latest",
"morgan": "latest",
"serve-favicon": "latest",
"nodemon":"latest",
"mysql":"latest",
"date-and-time":"latest",
"trim":"latest",
"dateformat":"latest",
"is-my-json-valid":"latest",
"md5":"latest",
"ldap-client":"latest"
}
}尝试解析package ldap-client时,我得到了以下结果:

发布于 2017-05-17 17:13:55
如果您的gcc版本配置不正确,则会出现此错误。因此,请尝试导出路径。
export PATH=/opt/rh/devtoolset-2/root/usr/bin:$PATH
https://stackoverflow.com/questions/44019699
复制相似问题