我正在尝试安装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.js 12的二进制文件。请参见未解决的问题https://github.com/abbr/NodeSSPI/issues/69。您可以降级Node.js版本或尝试编译二进制文件。请参阅安装说明https://github.com/abbr/NodeSSPI#installation
关于node.js - Node V12的node-sspi安装错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57883542/