TooTallNate / node-speaker

Output PCM audio data to the speakers
649 stars 145 forks source link

when i use npm install speaker,i met this error.Can anyone help me? #50

Open aizhilong opened 9 years ago

aizhilong commented 9 years ago
D:\web_frontend>npm install speaker
npm WARN package.json utils@0.0.2 No README data
\
> speaker@0.2.4 install D:\web_frontend\node_modules\speaker
> node-gyp rebuild

D:\web_frontend\node_modules\speaker>node "C:\Program Files (x86)\nodejs\node_mo
dules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild

生成启动时间 2015/3/25 10:33:52。
__________________________________________________
项目“D:\web_frontend\node_modules\speaker\build\binding.sln”(默认目标):

目标 ValidateSolutionConfiguration:
    正在生成解决方案配置“Release|Win32”。
目标 Build:
    目标 output:
        VCBuild.exe D:\web_frontend\node_modules\speaker\build\deps\mpg123\outpu
t.vcproj "Release|Win32"
        The following error has occurred during XML parsing:

        File: D:\web_frontend\node_modules\speaker\build\deps\mpg123\output.vcpr
oj
        Line: 1
        Column: 5683
        VCBUILD : error Message:
        系统错误: -2147154687。

        The file 'D:\web_frontend\node_modules\speaker\build\deps\mpg123\output.
vcproj' has failed to load.
    已完成在项目“binding.sln”中生成目标“output”-- 失败。
已完成在项目“binding.sln”中生成目标“Build”-- 失败。

已完成生成项目“binding.sln”-- 失败。

生成失败。
VCBUILD : error Message:
    0 个警告
    1 个错误

已用时间 00:00:04.62
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod
e_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\web_frontend\node_modules\speaker
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! speaker@0.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.4 install script.
npm ERR! This is most likely a problem with the speaker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls speaker
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "speaker"
npm ERR! cwd D:\web_frontend
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\web_frontend\npm-debug.log
npm ERR! not ok code 0
Edudjr commented 9 years ago

I had a similar error some days ago. Looks like Nodejs and Python27 should be both x86 or x64. However, It only worked for me with x86 versions. Make sure you have Express 2012/2013 if you are running on Windows 8. This should be helpful: https://github.com/TooTallNate/node-gyp

aizhilong commented 9 years ago

Thank you very much! O(∩_∩)O