我正在尝试通过教程在我的网络服务器上安装Cloud9,但是我遇到了一些麻烦 当我尝试运行命令 node bin / cloud9.js 时,我得到:
djent @ server:〜/ ide $ node bin / cloud9.js
node.js:216
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function.<anonymous> (module.js:381:11)
at Object.<anonymous> (/home/djent/ide/support/paths.js:7:8)
at Module.<anonymous> (module.js:444:26)
at Object..js (module.js:462:10)
at Module.load (module.js:351:32)
at Function._load (module.js:309:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/home/djent/ide/bin/cloud9.js:6:1)
at Module.<anonymous> (module.js:444:26)
djent@server:~/ide$
如何解决?我试图重新安装节点,但它无法正常工作。
答案 0 :(得分:1)
尝试从bin / cloud9.sh脚本开始。它应该工作。
答案 1 :(得分:1)
此时Cloud9不会在nodejs 0.6下运行。使用nvm切换到节点0.4.12以运行Cloud9。
答案 2 :(得分:0)