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
How to Require Active Record Working Outside of Rails
How to Install Jekyll on Osx 10.11
How to Make Ruby 1.9 the Default Ruby on Ubuntu
Why Should One Use a Http Server in Front of a Framework Web Server
Yaml How Many Spaces Per Indent
Why Does My Ruby 'Ri' Tool Not Return Results in Command Prompt
What's the Difference Between Gem_Home and Gem_Path
Ruby Net::Http - Following 301 Redirects
Rails with Ruby-Debugger Throw 'Symbol Not Found: _Ruby_Current_Thread (Loaderror)'
How to Change All the Keys of a Hash by a New Set of Given Keys
Confusion About Passing Instance Variables to Redirect_To Method. as Seen in Rails Guides
Using Join Tables in Ruby on Rails