错误安装Topojson – 争论? node-gyp重build? 其他线程不能正常工作Lion 10.7.5

更新:解决这样的:

像@萨勒姆说,我不得不安装:

npm install contextify 
  1. 那么sudo npm install -g topojson抛出一个关于需要接受Xcode许可协议的错误。 它扔了我也需要的命令,所以我跑了,然后再次尝试使用udo npm install -g topojson ,它工作正常!

问题:

所以,我得到的错误是:

sudo npm install -g topojson

我还没有find其他线程的解决scheme。

  1. Xcode是正确的吗? 我有Xcode 4.6.2 – 更新出现此错误:“Xcode [5]不能安装在”Macintosh HD“,因为Mac OS X版本10.8.4或更高版本是必需的。

  2. node&npm好像没问题…他们都在node –help和npm –help 2a上吐出一些帮助。 我试过删除然后使用node-v0.10.24-darwin-x86.tar重新安装节点。 虽然我很不清楚这是什么。

这是日志的结尾:

 npm ERR! Failed at the contextify@0.1.6 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 11.4.2 npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "topojson" npm ERR! cwd /Users/maggielee/Downloads npm ERR! node -v v0.10.24 npm ERR! npm -v 1.3.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/maggielee/Downloads/npm-debug.log npm ERR! not ok code 0 

整个日志在这里: http : //greencracker.net/wp-content/uploads/2013/12/error.txt

你怎么看?