在 MAC osx 中安装 phone 间隙时出现错误?

Getting error while installing phone gap in MAC osx?

我正在尝试在我的 MAC os(10.10) 中安装 Phonegap,我的系统中安装了 xcode 6.1.1。 我正在按照 this and this link 安装 phonegap 并安装 Node.jsCommand-Line Interface (CLI),但是当我尝试 运行 这个命令 npm install -g phonegap 时,我得到了如屏幕截图所示的错误 - 请告诉我我是什么 missing.Any 帮助将不胜感激。

添加sudo

sudo npm install -g phonegap