D3.js с 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.

2 ответа

Попробуйте скачать последнюю версию 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

Другие вопросы по тегам