Trying to install polymer and bower

March 18, 2015 1.4k views
DigitalOcean

I am following how to install polymer over on their website here:

https://www.polymer-project.org/0.5/docs/start/getting-the-code.html#using-bower

When I get to the step to run this cmd:

bower init

I get this:

mike@Beer-Portfolio:~$ bower init
/usr/bin/env: node: No such file or directory
mike@Beer-Portfolio:~$ 
1 comment
1 Answer

How did you install Bower? It requires Node.js to be installed. For a guide on installing it, see:

If you installed Node.js from the Ubuntu repositories, it installs a nodejs binary but many programs, including Bower, expect it to be named simply node You can create a symlink between the two in order to allow Bower to find it:

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

And for more info on Bower itself, check out:

by Justin Ellingwood
Node.js is a popular Javascript platform that can be used to build web applications quickly and easily. Node.js uses Javascript on both the front-end and back-end to create a more consistent experience for developers. In this guide, we'll get you up and running with Node.js on an Ubuntu 14.04 server.
Have another answer? Share your knowledge.