安装line-in包报错:NodeJS
Error in installing line-in package: NodeJS
我正在尝试使用 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 SpeechToText@1.0.0 No description
npm WARN SpeechToText@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! line-in@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the line-in@0.1.2 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 可能对您有帮助的具体说明:
我正在尝试使用 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 SpeechToText@1.0.0 No description
npm WARN SpeechToText@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! line-in@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the line-in@0.1.2 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 可能对您有帮助的具体说明: