brew安装节点错误

我无法通过自制程序安装节点。

$ brew install node 

哪个返回:

 node: Beginning with 0.8.0, this recipe now comes with npm. It appears you already have npm installed at /usr/local/lib/node_modules/npm. To use the npm that comes with this recipe, first uninstall npm with `npm uninstall npm -g`, then run this command again. If you would like to keep your installation of npm instead of using the one provided with homebrew, install the formula with the `--without-npm` option. Error: An unsatisfied requirement failed this build. 

当我运行npm卸载我得到一个命令未find错误。 有什么build议么?

注意:在某个时间点,我已经卸载了brew和npm。 我在想一些剩余的包是造成这个错误?

你有不是从自制软件安装的节点版本? 如果没有,那么即使npm在你的path中,也可能不会运行,因为它需要节点才能运行。

假设你想用自制软件重新开始,你应该安全的删除/usr/local/lib/nodemodules/目录。 这应该摆脱自制警告。 您可能首先要记下安装的任何东西,以便在通过自制程序安装node和npm后重新安装。

我倾向于认为你已经安装了节点bot没有将节点映射到系统的PATHvariables,检查一下,如果是的话先卸载map,然后你的旧安装就可以了