09 agosto 2014

Node error using bower on Debian testing

I was setting up bower in my Debian testing, to start developing with Polymer.
When i tried to install Polymer through bower i got the next error:

xxx@xxx:~/xxx$ bower init
/usr/bin/env: node: No existe el fichero o el directorio

The reason is that bower does search for node at /usr/bin/node, but this binary doesn't exist. Instead, /usr/bin/nodejs does exist.

So, the only thing we have to do is a symbolic link:

sudo ln -s /usr/bin/nodejs /usr/bin/node

And we are done! :)

No hay comentarios:

Publicar un comentario