16

I am trying to use Cloud9 IDE on a server. I added the SSH key and once I try to SSH into the server the error message

Could not execute node.js on root@xxx.xxx.xxx.xxx

appears.

I have nodejs installed on the server, v0.10.25

Will Hua
  • 1,729
  • 2
  • 23
  • 33

5 Answers5

7

You need to install the package "nodejs-legacy".

apt-get install nodejs-legacy

Lyle
  • 1,238
  • 14
  • 16
5

The SSH dialog allows you to set the path to the Node.js binary. That should solve your issue.

Ruben Daniels
  • 856
  • 4
  • 3
  • Where can I find that binary? I couldn't find any file named node.js using the find command and googling the result does not bring up much useful information – Will Hua Mar 09 '15 at 02:18
  • 3
    can you try `which node` to see whether node is installed? – Mutahhir Mar 09 '15 at 05:14
3

I found it is necessary to scroll down and click on the advanced tab. Then I entered /usr/bin/nodejs from my "which nodejs" output in my SSH session. This worked for me even though the documentation states AWS tries to do this by default. That left me in the AWS file work space on the server I ssh'ed into as desired.

3

nodejs was not installed on my EC2 instance, so I installed using the instructions from the following link, and it work perfectly. Tutorial: Setting Up Node.js on an Amazon EC2 Instance

Shanemeister
  • 667
  • 7
  • 13
1

sudo apt-get install nodejs worked for me

Shailesh
  • 2,116
  • 4
  • 28
  • 48