2014-12-10 3 views
2

가 발생합니다 (그러나 사항 다른 설치는 잘 갈 것 같다.) 당신은 아마이 시점에서에 이동 한약간의 신비화 contextify 오류를 얻기 contextify 오류

npm install d3 

    MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install 
Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. 
[C:\Users\dinesh\m3\node_modules\d3\node_modules\jsdom\node_modules\contextify\build\binding.sln] 
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\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\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Users\dinesh\m3\node_modules\d3\node_modules\jsdom\node_modules\contextify 
gyp ERR! node -v v0.10.32 
gyp ERR! node-gyp -v v1.0.1 
gyp ERR! not ok 

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 

npm ERR! node -v v0.10.32 
npm ERR! npm -v 1.4.28 
+0

'npm install --msvs_version = 2012'을 사용해 보시겠습니까? [여기] (https://github.com/TooTallNate/node-gyp/issues/306)에서 가져온 [여기] (https://github.com/TooTallNate/node-gyp/issues/168#) 발행 -21294873). – meetamit

+0

@meetamit 감사합니다. 재미 있습니다. 방금 시도했는데 같은 장소에서 실패했습니다. 나는 --verbose 옵션을 시도해 보았고, 뒤 따르는 로그는'. \ node_modules \ d3 \ node_modules \ jsdom'을 빌드하려고하고'about. \ node_modules \ d3'을 빌드하는 것을 보여준다. 나는 그것이 무엇을 의미하는지 확신 할 수 없다 ... (지금 내가 d3 패키지를 수동으로 설치했다) – Dinesh

답변

3

하지만 향후 Google 직원 :

D3.js의 v3.5.4 +

jsdom 업그레이드

하면 d3의 의존성이며 jsdom은 기본 모듈 (node-gyp)를 사용하는 contextify 필요하다. 네이티브 모듈은 일부 플랫폼에서 빌드하기가 어렵기 때문에 d3jsdom으로 개발 종속성 (기본적으로 설치되지 않음)을 v3.5.4에서 만들었습니다.

관련하여 : D3.js commitD3.js issue.

+0

10 개의 상향 회선을 줄 수 있으면 좋겠다. 'node-gyp '을 설치하는 것은 고통입니다. – antoine