node.js - 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.js 12 的二进制文件。请参阅未解决的问题https://github.com/abbr/NodeSSPI/issues/69。您可以降级 Node.js 版本或尝试编译二进制文件。请参阅安装说明https://github.com/abbr/NodeSSPI#installation
推荐阅读
- linux - ARM Cortex-M 上的 Linux 内核:如何构建正确的可执行文件
- android - 如何从收件箱移动到 kotlin/android.. 中的对话选项卡?
- linux - Diff 命令与 Grep 一起提供“二进制文件(标准输入)匹配”
- java - Jena ARQ中子选择的绑定值问题
- java - 这是最好的方法吗?有没有更清洁的方法?
- sas - 有没有更好的方法来比较 SAS 中不同行之间的案例?
- javascript - 无法解决类装饰器类型错误
- vb.net - 如何通过套接字发送 STX 和 ETX
- php - 是否可以在 Laravel 中配置括号位置?
- javascript - 如何避免折叠动作多次触发