Node.js 无法使用npm安装播放器模块

Node.js 无法使用npm安装播放器模块,node.js,Node.js,我正在尝试安装以下节点模块: 在尝试使用命令安装它时 npm install player 我得到了以下错误输出: C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots>npm install player > lame@1.2.3 install C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\lame > node-gyp rebuild

我正在尝试安装以下节点模块:

在尝试使用命令安装它时

npm install player
我得到了以下错误输出:

C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots>npm install player

> lame@1.2.3 install C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\lame
> node-gyp rebuild


C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\lame>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.4.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:121:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:110:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:821:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack     at emitOne (events.js:90:13)
gyp ERR! stack     at Socket.emit (events.js:182:7)
gyp ERR! stack     at Pipe._onclose (net.js:469:12)
gyp ERR! System Windows_NT 10.0.10586
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 C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\lame
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:lame@1.2.3 lame@1.2.3 install: `node-gyp rebuild`
npm WARN install:lame@1.2.3 Exit status 1

> speaker@0.2.6 install C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\speaker
> node-gyp rebuild


C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\speaker>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.4.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:121:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:110:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:821:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack     at emitOne (events.js:90:13)
gyp ERR! stack     at Socket.emit (events.js:182:7)
gyp ERR! stack     at Pipe._onclose (net.js:469:12)
gyp ERR! System Windows_NT 10.0.10586
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 C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\speaker
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:speaker@0.2.6 speaker@0.2.6 install: `node-gyp rebuild`
npm WARN install:speaker@0.2.6 Exit status 1

> bufferutil@1.2.1 install C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.4.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:121:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:110:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:821:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack     at emitOne (events.js:90:13)
gyp ERR! stack     at Socket.emit (events.js:182:7)
gyp ERR! stack     at Pipe._onclose (net.js:469:12)
gyp ERR! System Windows_NT 10.0.10586
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 C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.2.1 Exit status 1

> utf-8-validate@1.2.1 install C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.4.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:121:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:110:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:821:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack     at emitOne (events.js:90:13)
gyp ERR! stack     at Socket.emit (events.js:182:7)
gyp ERR! stack     at Pipe._onclose (net.js:469:12)
gyp ERR! System Windows_NT 10.0.10586
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 C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:utf-8-validate@1.2.1 utf-8-validate@1.2.1 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.2.1 Exit status 1
C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots
└── (empty)

npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\package.json'
npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\utf-8-validate\package.json'
npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\bufferutil\package.json'
npm WARN EPACKAGEJSON PinkstarTVBots No description
npm WARN EPACKAGEJSON PinkstarTVBots No repository field.
npm WARN EPACKAGEJSON PinkstarTVBots No README data
npm WARN EPACKAGEJSON PinkstarTVBots No license field.
npm ERR! code 1

C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots>
C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots>npm安装播放器
> lame@1.2.3安装C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\lame
>节点gyp重建
C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\lame>如果未定义npm_config_node_gyp(节点“C:\Program Files\nodejs\node_modules\npm\bin\node gyp bin\\\\\\\\\\\\\ node_modules\node gyp.js”重建)其他(节点重建)
哎呀!配置错误
哎呀!堆栈错误:Python可执行文件“Python”是v3.4.4,gyp不支持它。
哎呀!堆栈您可以传递--python开关指向python>=v2.5.0&<3.0.0。
哎呀!FailPythVersion时堆栈(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:121:14)
哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:110:9
哎呀!在ChildProcess.exithandler处堆栈(child_process.js:204:7)
哎呀!在emitTwo处堆栈(events.js:100:13)
哎呀!ChildProcess.emit处的堆栈(events.js:185:7)
哎呀!maybeClose的堆栈(内部/子进程js:821:16)
哎呀!在插座处堆叠。(内部/child_process.js:319:11)
哎呀!emitOne上的堆栈(events.js:90:13)
哎呀!堆栈位于Socket.emit(events.js:182:7)
哎呀!在管道处堆放。一旦关闭(net.js:469:12)
哎呀!系统Windows\u NT 10.0.10586
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\lame
哎呀!节点-v5.5.0
哎呀!节点gyp-v3.0.3
哎呀!不好
npm警告安装:lame@1.2.3 lame@1.2.3安装:`node gyp rebuild`
npm警告安装:lame@1.2.3退出状态1
> speaker@0.2.6安装C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\speaker
>节点gyp重建
C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\speaker>如果未定义npm_config_node_gyp(节点“C:\Program Files\nodejs\node_modules\npm\bin\node gyp bin\\\\\\\\\\\\\\ node_modules\node gyp.js“重建”)其他(节点重建)
哎呀!配置错误
哎呀!堆栈错误:Python可执行文件“Python”是v3.4.4,gyp不支持它。
哎呀!堆栈您可以传递--python开关指向python>=v2.5.0&<3.0.0。
哎呀!FailPythVersion时堆栈(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:121:14)
哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:110:9
哎呀!在ChildProcess.exithandler处堆栈(child_process.js:204:7)
哎呀!在emitTwo处堆栈(events.js:100:13)
哎呀!ChildProcess.emit处的堆栈(events.js:185:7)
哎呀!maybeClose的堆栈(内部/子进程js:821:16)
哎呀!在插座处堆叠。(内部/child_process.js:319:11)
哎呀!emitOne上的堆栈(events.js:90:13)
哎呀!堆栈位于Socket.emit(events.js:182:7)
哎呀!在管道处堆放。一旦关闭(net.js:469:12)
哎呀!系统Windows\u NT 10.0.10586
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\speaker
哎呀!节点-v5.5.0
哎呀!节点gyp-v3.0.3
哎呀!不好
npm警告安装:speaker@0.2.6 speaker@0.2.6安装:`node gyp rebuild`
npm警告安装:speaker@0.2.6退出状态1
> bufferutil@1.2.1安装C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\ws\node\u modules\bufferutil
>节点gyp重建
C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\bufferutil>如果未定义npm_config_node_gyp(节点“C:\Program Files\nodejs\node_modules\npm\bin\node gyp bin\\\\\\\\\\\\\\\\\\\\\\\\\\\\\节点_modules\node gyp\bin\node gyp.js“重建)其他(节点重建)
哎呀!配置错误
哎呀!堆栈错误:Python可执行文件“Python”是v3.4.4,gyp不支持它。
哎呀!堆栈您可以传递--python开关指向python>=v2.5.0&<3.0.0。
哎呀!FailPythVersion时堆栈(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:121:14)
哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:110:9
哎呀!在ChildProcess.exithandler处堆栈(child_process.js:204:7)
哎呀!在emitTwo处堆栈(events.js:100:13)
哎呀!ChildProcess.emit处的堆栈(events.js:185:7)
哎呀!maybeClose的堆栈(内部/子进程js:821:16)
哎呀!在插座处堆叠。(内部/child_process.js:319:11)
哎呀!emitOne上的堆栈(events.js:90:13)
哎呀!堆栈位于Socket.emit(events.js:182:7)
哎呀!在管道处堆放。一旦关闭(net.js:469:12)
哎呀!系统Windows\u NT 10.0.10586
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\ws\node\u modules\bufferutil
哎呀!节点-v5.5.0
哎呀!节点gyp-v3.0.3
哎呀!不好
npm警告安装:bufferutil@1.2.1 bufferutil@1.2.1安装:`node gyp rebuild`
npm警告安装:bufferutil@1.2.1退出状态1
>utf-8-validate@1.2.1安装C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node\u modules\ws\node\u modules\utf-8-validate
>节点gyp重建
C:\Users\AbfalterJakob\MEGA\Projekte\PinkstarTVBots\node_modules\ws\node_modules\utf-8-validate>如果未定义npm_config_node_gyp(节点“C:\Program Files\nodejs\node_modules\npm\bin\node gyp bin\\\\\\\\\\\\\\\\\\ node_modules\node gyp\bin\node gyp.js“重建”)其他(节点重建)
哎呀!配置错误
哎呀!sta
gyp ERR! stack Error: Python executable "python" is v3.4.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.