Estoy tratando de instalar nodejs en mac usando homebrew, pero cuando ejecuto el comando:
brew install node
Me sale el siguiente error:
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.
pero cuando ejecuto:
sudo npm uninstall npm -g
Obtengo:
sudo: npm: command not found
Cuando ejecuto el comando npm
, me sale:
-bash: /usr/local/bin/npm: No such file or directory
así que no estoy seguro de si es realmente instalado o no.
Mi versión de nodo es 0.8.22 (no tengo idea de donde vino). ¿Cómo debo actualizar a la última versión?