2

更新:像这样解决:

1.就像@salem 说的,我必须安装contextify:

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

问题:

所以,我收到很多错误:

sudo npm install -g topojson

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

  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

你怎么看?

4

0 回答 0