Nuclide + Atom远程开发在Ubuntu 16.04上不起作用

我试图用远程开发启动Nuclide + Atom。

我已经通过包pipe理器在Atom上安装了Nuclide并安装了Nuclide Server(Ubuntu 16.04)

npm install -g nuclide 

我的第一个麻烦是:

 nohup: failed to run command 'node': No such file or directory 

在核心服务器启动日志文件,但我解决了nodejs与节点在Ubuntu的12.04 (不要以为这是正确的… :)但它适用于我)

而我又有了一个麻烦:

 /usr/local/lib/node_modules/nuclide/pkg/nuclide-server/lib/nuclide-main.js:20 const {__DEV__} = require('../../nuclide-node-transpiler/lib/env'); ^ SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3 

在核心服务器启动日志文件。

当我通过npm安装核心服务器时,它告诉我

 WARN engine nuclide@0.208.0: wanted: {"atom":">=1.14.1","node":">=6.5.0"} (current: {"node":"4.2.6","npm":"3.5.2"}) 

可能是我麻烦的原因吗?

有人帮忙! 🙂

首先我试图从npm更新我的nodeJS:

 $ sudo npm install -g node 

我有一个答案:

 npm WARN deprecated node@0.0.0: To update or install node, go to http://nodejs.org/ /usr/local/lib └── node@0.0.0 

那么我尝试一些方法来更新我的nodeJs,在这里描述: https : //github.com/kevincobain2000/instagram-bot-api/issues/1

  $ sudo npm cache clean -f && sudo npm install -gn && sudo n stable npm WARN using --force I sure hope you know what you are doing. /usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n /usr/local/lib └── n@2.1.4 install : node-v7.6.0 mkdir : /usr/local/n/versions/node/7.6.0 fetch : https://nodejs.org/dist/v7.6.0/node-v7.6.0-linux-x64.tar.gz ######################################################################## 100.0% installed : v7.6.0 

之后,nuclide-server-start成功启动! 🙂