簡體   English   中英

D3.js與Total.js / node.js

[英]D3.js with Total.js/node.js

我一直在嘗試將total.js與D3結合使用以創建樹形可視化文件。 我無法下載D3。 我做 :

npm install D3 

我得到:

npm ERR! contextify@0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.8 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,但是我得到了同樣的東西。 我已經成功下載了gyp,但是如果我嘗試下載D3.js,則似乎無法正常工作。

嘗試下載最新版本的node.js(使用node.js v0.12.0時一切正常)。

更新npm並使用小寫字母d3

更新npm:

npm install -g npm可能需要sudo

安裝d3:

npm install d3

注意:這會將d3安裝在您當前的位置,以globally安裝:

sudo npm install d3 -g

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM