Node.js 在原子上安装核素

Node.js 在原子上安装核素,node.js,atom-editor,Node.js,Atom Editor,我试图在Atom上安装核素,但我得到了以下错误。当我跑的时候 apm安装核素 Installing “nuclide@0.125.0” failed.Hide output… npm WARN engine nuclide@0.125.0: wanted: {"atom":">=1.5.3","node":">=4.1.1"} (current: {"node":"0.10.40","npm":"2.13.3"}) npm ERR! Darwin 14.5.0 npm ERR! a

我试图在Atom上安装核素,但我得到了以下错误。当我跑的时候

apm安装核素

Installing “nuclide@0.125.0” failed.Hide output…

npm WARN engine nuclide@0.125.0: wanted: {"atom":">=1.5.3","node":">=4.1.1"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/ammathu/Downloads/Atom 2.app/Contents/Resources/app/apm/bin/node" "/Users/ammathu/Downloads/Atom 2.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/ammathu/.atom/.apm/.apmrc" "--userconfig" "/Users/ammathu/.atom/.apmrc" "install" "/private/var/folders/sk/rxnvp2hs2nd0xp3w_bsq3f1d6b3pqf/T/d-116222-56925-dimbjc/package.tgz" "--target=0.34.5" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3

npm ERR! version not found: relative-date@1.1.2
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/sk/rxnvp2hs2nd0xp3w_bsq3f1d6b3pqf/T/apm-install-dir-116222-56925-votedf/npm-debug.log
安装“nuclide@0.125.0“失败。隐藏输出…
警告引擎nuclide@0.125.0:通缉:{“原子”:“>=1.5.3”,“节点”:“>=4.1.1”}(当前:{“节点”:“0.10.40”,“npm”:“2.13.3”})
npm错误!达尔文14.5.0
npm错误!argv“/Users/ammathu/Downloads/Atom 2.app/Contents/Resources/app/apm/bin/node”“/Users/ammathu/Downloads/Atom 2.app/Contents/Resources/app/apm/node\u modules/npm/bin/npm cli.js”“--globalconfig”“/Users/ammathu/.Atom/.apmrc”“--Users/ammathu/.Atom/.apmrc”“安装”“/private/var/folders/sk/rxnvp2ns2nd0xp3w_bsq3f1d6b3pqf/T/d-116222-56925-dimbjc/package.tgz”“--目标=0.34.5”“--拱=x64”
npm错误!节点v0.10.40
npm错误!npm v2.13.3
未找到npm错误!版本:相对-date@1.1.2
npm错误!
npm ERR!如果您需要帮助,可以在以下位置报告此错误:
npm错误!
npm ERR!请在任何支持请求中包含以下文件:
npm ERR!/private/var/folders/sk/rxnvp2hs2nd0xp3w_bsq3f1d6b3pqf/T/apm-install-dir-116222-56925-votedf/npm-debug.log
知道怎么修吗?
node-v
为我提供了v5.0.0`

我可以从源代码安装它:

运行以下命令从源构建核素

# Clone the source
$ git clone https://github.com/facebook/nuclide.git
$ cd nuclide
# Install dependencies
$ npm install
# Link the 'nuclide' package to Atom's package directory
$ apm link
通过以下方式验证安装:

Open Atom.
Go to Atom | Preferences.
Click on Packages.
Verify nuclide as one of the packages.
这为我解决了问题

$ git clone https://github.com/facebook/nuclide.git
$ cd nuclide
# Install dependencies
$ yarn --pure-lockfile
# Link the 'nuclide' package to Atom's package directory
# You could also use apm link --dev ... see Development Mode below.
$ apm link
npm安装没有安装所有必要的模块。不断给我错误,找不到模块-。。。 这在他们的文档中给出。

链接到atom的核素。它显示在包列表中。但是每次抛出错误时,
未能加载核素包,找不到模块“bla-bla-bla”,错误是从核素包中抛出的。
您可以提出一些建议吗。atom:1.34.0 x64和核素:0.390.0。向atom添加核素,如上所示。