Cloud9 IDE [C9服务器异常2] undefined

问题描述:

我们在ubuntu 12.04LTS 32位服务器上本地安装了cloud9 ide。安装步骤依次为url http://ubuntuforums.org/showthread.php?t=1813076 Cloud9 IDE正在运行并能够看到主页(localhost:3131 /) 当我们尝试运行php或python文件时,在控制台窗口上显示一条消息“[C9 Server Exception 2]未定义 “Cloud9 IDE [C9服务器异常2] undefined

并且还请求到localhost:3131 /调试抛出 ”404未找到“ post数据为如下, { ”剂“:” 的Mozilla/5.0(Windows NT的6.1; WOW64; RV:38.0) Gecko/20100101 Firefox/38.0“,”type“:”C9 SERVER EXCEPTION“,”message“:{”type“:”error“,”message“:”文件不存在:root/local/bin/node“ ,“code”:2,“data” :{“command”:“Run”,“file”:“root/local/bin/node”,“runner”:“node”,“args”:[“” ],“env”:{“C9_SELECTED_FILE” :“”}}}}

如何解决此问题?

+0

看来该节点没有安装在服务器上。使用安装即可使用'sudo apt-get的安装nodejs' – Mutahhir

+0

和的NodeJS安装节点, 根@本地:〜#它的NodeJS 在/ usr/bin中/ 的NodeJS根@本地:〜#-v的NodeJS V0 。 10。38 根@本地:〜#哪个节点 /根/ local/bin目录/节点 根@本地:〜#节点-v v0.4.10 – SDL

+0

如果你已经使用'sudo易于得到安装node'安装节点,你必须删除它。这可能是你得到这个问题的原因。使用'sudo apt-get install nodejs'删除节点二进制文件并再次安装节点 – Mutahhir

http://ubuntuforums.org/showthread.php?t=1813076中的安装步骤适用于较早的版本。

安装

按照以下步骤来安装SDK:

git clone git://github.com/c9/core.git c9sdk 
cd c9sdk 
scripts/install-sdk.sh 

要更新SDK到最新版本运行:

git pull origin master 
scripts/install-sdk.sh 

请注意,CLOUD9目前v3的要求Node.js 0.12或0.10。

开始CLOUD9

启动CLOUD9如下:

node server.js 

下列选项可用于:

--settings  Settings file to use 
--help   Show command line options. 
-t    Start in test mode 
-k    Kill tmux server in test mode 
-b    Start the bridge server - to receive commands from the cli [default: false] 
-w    Workspace directory 
--port   Port 
--debug   Turn debugging on 
--listen   IP address of the server 
--readonly  Run in read only mode 
--packed   Whether to use the packed version. 
--auth   Basic Auth username:password 
--collab   Whether to enable collab. 
--no-cache  Don't use the cached version of CSS 

现在访问http://localhost:8181/ide.html加载CLOUD9。

运行测试

运行服务器端的测试用:

npm run test 

运行客户端测试有:

npm run ctest 

然后在你的浏览器访问http://localhost:8181/static/test

欲了解更多详情请参阅:https://github.com/c9/core#installation