reactive run-android failed "could not install *smartsocket* listener: Address already in use" in MacOS

- Andrés Cruz

En español
reactive run-android failed "could not install *smartsocket* listener: Address already in use" in MacOS

There are times when you get an ugly EACCES error message from NPM when you try to install an NPM package globally on your Mac by running npm install -g

<PACKAGE_NAME> o npm uninstall -g <PACKAGE_NAME>.

This is a permissions issue; to correct it we correct the permissions; If we use some global package installation command, we will see something like the following:

Error instalar Paquete Node
Error instalar Paquete Node

 

Which tells us that we do NOT have permissions, the permissions are from root, we have to indicate that they belong to the user who is trying to install said packages; for that we can use the whoami command plus the permissions:

sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules

Try running npm install -g ... or npm uninstall -g ... without sudo and it should run without errors.

Andrés Cruz

Desarrollo con Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter

Andrés Cruz en Udemy

Acepto recibir anuncios de interes sobre este Blog.