2014-06-13 5 views
0

D3에서 total.js를 사용하여 트리 시각화를 만들려고했습니다. D3을 다운로드 할 수 없습니다. 내가 할 : 나는 시도D3.js with Total.js/node.js

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the contextify 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 contextify 
npm ERR! There is likely additional logging output above. 

npm ERR! System Darwin 12.5.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "d3" 
npm ERR! cwd /Users/grantherman/Desktop/vendorTool/node_modules 
npm ERR! node -v v0.10.28 
npm ERR! npm -v 1.4.9 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/grantherman/Desktop/vendorTool/node_modules/npm-debug.log 
npm ERR! not ok code 0 

이 contextify 다운로드,하지만 같은 일을 얻을 :

npm install D3 

내가 얻을. 성공적으로 gyp을 다운로드했지만 D3.js를 다운로드하려고 시도하면 작동하지 않는 것 같습니다.

+0

이 아마 무슨 일하지하지만 당신은 d는 대문자되지 않는 경우 '가 NPM d3'를 설치 시도 할 수 있습니다 : n은 사용자의 현재 위치는 globally 사용을 설치 하는가? npm이 대소 문자를 구분하지 않는지 확실하지 않습니다. – aug

답변

0

node.js의 최신 버전을 다운로드하십시오 (node.js v0.12.0이 모두 작동 함).

0

업데이트 NPM 및 사용 소문자 D3

업데이트 NPM :

npm install d3

참고 :이 내가 d3를 설치합니다

npm install -g npm는 D3 설치 sudo

필요할 수 있습니다

sudo npm install d3 -g