2017-04-30 15 views
0

node-celery 패키지에 필요하므로 Windows 64 비트 시스템에 hiredis을 설치하려고합니다.Windows 10 x64에 [email protected]을 설치할 수 없습니다.

시스템

  • 노드 v7.9.0
  • NPM의 4.5.0
  • 업데이트 5
  • 비주얼 스튜디오 커뮤니티 2013 (en_visual_studio_community_2013_with_update_5_x86_6816332)
  • 윈도우 10 (64 비트)
를 실행

달리기

npm config set msvs_version 2013 
npm install --save hiredis 

은 다음과 같은 빌드 오류를 제공합니다.

v120 build tools을 오류 메시지에 어떻게 표시합니까?

C:\Users\y\Dropbox\Code\test\backend\node_modules\hiredis>if not defined npm_config_node_gyp (node "C:\Users\y\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\ 
..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (node "" rebuild) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build 
using the v120 build tools, please install v120 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, 
and then selecting "Retarget solution". [C:\Users\y\Dropbox\Code\test\backend\node_modules\hiredis\build\deps\hiredis-c.vcxproj] 
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Users\y\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:285:23) 
gyp ERR! stack  at emitTwo (events.js:106:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:194:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 
gyp ERR! System Windows_NT 10.0.14393 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\y\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Users\y\Dropbox\Code\test\backend\node_modules\hiredis 
gyp ERR! node -v v7.9.0 
gyp ERR! node-gyp -v v3.6.0 
gyp ERR! not ok 
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 'node-gyp rebuild'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the hiredis 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 information on how to open an issue for this project with: 
npm ERR!  npm bugs hiredis 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls hiredis 
npm ERR! There is likely additional logging output above. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\y\AppData\Roaming\npm-cache\_logs\2017-05-01T00_33_25_808Z-debug.log 

답변

0

Windows를 다시 시작하면 문제가 해결되었습니다.