rharriso/bower-rails

Documentation should mention dependency on the "node" binary

tkhduracell opened this issue ยท 15 comments

The gem need the node-binary from nodejs-legacy in order to run.

The error that appears when nodejs-legacy is not installed.

/vagrant vagrant@vagrant-ubuntu-trusty-64% rake bower:list
/usr/local/bin/bower list
rake aborted!
Command failed with status (1): [/usr/local/bin/bower list...]

Tasks: TOP => bower:list
(See full trace by running task with --trace)
/vagrant vagrant@vagrant-ubuntu-trusty-64% rake bower:install
bower.js files generated
/usr/local/bin/bower install
/usr/bin/env: node: No such file or directory
rake aborted!
Command failed with status (127): [/usr/local/bin/bower install ...]

Tasks: TOP => bower:install
(See full trace by running task with --trace)

Solution:

 sudo apt-get install nodejs-legacy

Should the documentation mention this?

Thanks for reporting but I've never met this issue before. I think it depends on the way you install node (you did it via package manager, right?) and it not related to bower-rails.

The alternative way to fix /usr/bin/env: node: No such file or directory error is to create a symlink like ln -s /usr/bin/nodejs /usr/bin/node nodejs/node-v0.x-archive#3911 (comment)

Yes, it was installed with apt-get. Ok, thanks for your help

Thanks @tkhduracell sudo apt-get install nodejs-legacy saved me. ๐Ÿ‘

nynj commented

Same problem, sudo apt-get install nodejs-legacy worked for me as well. Ubuntu 13.10.

nodejs-legacy works on Ubuntu 14.04 as well

helped me too

Readme updated!

Thanks for your post. I'm not sure how, but the nodejs-legacy package got uninstalled from my development machine and I was suddenly having problems with bower for no apparent reason.

nodejs-legacy โค๏ธ

๐Ÿ‘ nodejs-legacy

Still true in August of 2015, apparently? This saved me on a search!

Still true.
๐Ÿ’š nodejs-legacy โค๏ธ

0rtep commented

+1 nodejs-legacy

June/2016, still need to install nodejs-legacy to make it work
+1 Thanks!

Oh, I saw that it was mentioned in the Readme. Thanks again!