我正在尝试安装 passport-ldapauth 来从LDAP服务器验证并验证我的Web应用程序 我尝试使用- npm install password-ldapauth
安装节点模块该软件包已安装,但是出现以下错误跟踪。
D:\LDAP_AUTH>npm install passport-ldapauth --save
> dtrace-provider@0.8.7 install D:\LDAP_AUTH\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js
D:\LDAP_AUTH\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\LDAP_AUTH\node_modules\dtrace-provider
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN ldap_auth@1.0.0 No repository field.
+ passport-ldapauth@2.0.0
added 49 packages in 7.839s
有关如何消除此错误的建议? 谢谢