Node.Js Not Found by Rails/Execjs

Node.js not found by Rails / execjs

I have had similar issue installing nodejs with source on my centos 6.3 system. It was successfully installed but I keep failing in compiling my ror app assets until I explicitly set the PATH to where it was installed (nodejs)

[root]# make install

...

installing /usr/local/lib/node_modules/npm/html/doc/folders.html

symlinking ../lib/node_modules/npm/bin/npm-cli.js -> /usr/local/bin/npm

updating shebang of /usr/local/bin/npm to /usr/local/bin/node

[root]# export PATH=/usr/local/bin:$PATH

Now it works. Hope that helps!

Passenger + Ruby/ExecJS not finding NodeJS

For some reason nginx/passenger cannot find the proper nodejs path. I've fixed this issued before by adding this to the top of my nginx configuration ( /etc/nginx/nginx.conf ):
end PATH;

Check: Rails/Passenger/Node.js: ExecJS "Could not find a JavaScript runtime" for more info.

Also, make sure the user in which nginx is executed (www-data?) is able to run node.

ExecJS and could not find a JavaScript runtime

Ubuntu Users

I'm on Ubuntu 11.04 and had similar issues. Installing Node.js fixed it.

As of Ubuntu 13.04 x64 you only need to run:

sudo apt-get install nodejs

This will solve the problem.


CentOS/RedHat Users

sudo yum install nodejs

ExecJS::RuntimeError [Rails 4] Node.js already installed

I "resolved" the problem, I formated my laptop and installed Windows 7 Ultimate...

Rails Can't Find NodeJS Even Though it is Installed

I had added "PATH: './bin:$PATH'" to my local_env.yml file. See comment above. Doh!



Related Topics



Leave a reply



Submit