首页 > 解决方案 > node V12 的 node-sspi 安装错误

问题描述

我正在尝试安装 node-sspi,但出现以下错误:

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:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:165:21)
gyp ERR! System Windows_NT 10.0.17134
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"

是否有任何解决方案来修复错误或是否有任何替代包。

标签: node.jsnpminstallation

解决方案


此软件包没有 Node.js 12 的二进制文件。请参阅未解决的问题https://github.com/abbr/NodeSSPI/issues/69。您可以降级 Node.js 版本或尝试编译二进制文件。请参阅安装说明https://github.com/abbr/NodeSSPI#installation


推荐阅读