安装嵌入式程序包时出错:NodeJS

Nikhilesh AS

我正在尝试使用该line-in包将输入的音频数据作为输出流化。安装软件包时,出现错误,指出node-gyp重建命令失败。

我正在使用NodeJS,但我真的不知道为什么node-gyp试图访问我的python.exe文件。有人可以帮我解决这个问题吗?

gyp ERR! stack Error: Command failed: C:\Users\NikhileshSubramanian\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
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"
gyp ERR! cwd F:\Topgear\SpeechToText\node_modules\line-in
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```

达韦加哥达

node-gyp需要python2.7:

https://github.com/nodejs/node-gyp

python (v2.7 recommended, v3.x.x is not supported)

有一些特定于Windows的说明可以帮助您:

https://github.com/nodejs/node-gyp#on-windows

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Go中的嵌入式程序包?

如何对包含嵌入式助手的应用程序包进行公证?

执行程序包时出错

UWP Web安装-“解析应用程序包时出错。”

交叉编译OpenSSH(嵌入式Linux)时出错

在flutter中安装提供程序包^3.1.0后出错

删除旧的内核程序包时出错

处理程序包shim签名时出错

安全警报:您的应用程序包含嵌入式私钥或密钥库文件

安全警报:应用程序包含嵌入式私钥或密钥库文件

在其他组织项目中安装发布到Azure DevOps NPM Artifacts的程序包时出错

错误:安装APK时解析程序包

仅运行一组嵌入式安装程序的 Inno Setup 安装程序

使用嵌入式依赖项时,JAR 未嵌入 OSGi 包中

嵌入式主板支持包

在虚拟环境中时,将安装程序包安装到全局站点程序包

如何在嵌入式设备的文件系统中更新/安装新包?

如何管理嵌入式OSGi应用程序中的包/依赖关系?

将 SharePoint 页面添加到 TFS 中的“嵌入式网页”小部件时出错

将数据添加到与PostingFormats相关的Java嵌入式Elasticsearch中的索引时出错

在C ++中的嵌入式Python中导入Tensorflow时出错

C ++中的嵌入式python代码-导入python库时出错

执行Neo4j Cypher Query(通过Java)嵌入式模式时出错

将嵌入式媒体播放器组件添加到 JPanel 时出错

错误:在Windows 10中安装GNU八度程序包时,“不允许打包程序包”

安装程序在安装此程序包时遇到意外错误 - 错误代码 2896

微程序与嵌入式系统的连接

从另一个包中导入结构时的私有嵌入式结构

在nodejs pyshell中导入已安装的python包时出错