Macos 安装Topojson——contextify时出现大量错误?节点gyp重建?10.7.5中未使用的其他螺纹

Macos 安装Topojson——contextify时出现大量错误?节点gyp重建?10.7.5中未使用的其他螺纹,macos,node.js,topojson,Macos,Node.js,Topojson,更新:解决方法如下: 1.正如@salem所说,我必须安装contextify: npm install contextify 然后sudo npm install-g topojson抛出了一个关于需要接受Xcode许可协议的错误。它也抛出了我需要的命令,所以我运行了它,然后再次尝试了sudo npm install-g topojson,结果成功了 问题: 因此,我在以下方面犯了很多错误: sudo npm安装-g topojson 我还没有在其他线程中找到解决方案 Xcode正确吗?我

更新:解决方法如下:

1.正如@salem所说,我必须安装contextify:

npm install contextify
  • 然后
    sudo npm install-g topojson
    抛出了一个关于需要接受Xcode许可协议的错误。它也抛出了我需要的命令,所以我运行了它,然后再次尝试了s
    udo npm install-g topojson
    ,结果成功了
    问题:

    因此,我在以下方面犯了很多错误:

    sudo npm安装-g topojson

    我还没有在其他线程中找到解决方案

  • Xcode正确吗?我使用的是Xcode 4.6.2——更新版给出了这个错误:“Xcode[5]不能安装在“Macintosh HD”上,因为需要MacOSX版本10.8.4或更高版本。”

  • 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
    
    整个日志如下:


    您觉得怎么样?

    您能提供npm install contextify的输出吗?这是一个需要编译的模块,所以您可能缺少一些库…谢谢,安装contextify完成了。我更新了上面的内容。