在 Atom 上安装核素

Installing nuclide on Atom

我正在尝试在 Atom 上安装核素,但出现以下错误。当我 运行

apm install nuclide

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

知道如何解决吗? node -v 给我 v5.0.0`

我已经能够从源代码安装它:

http://nuclide.io/docs/advanced-topics/building-from-source/#linux__building

运行 以下命令从源构建 Nuclide。

# 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 install 没有安装所有必要的模块。一直给我错误,找不到模块-... 这在他们的文档中给出。 https://nuclide.io/docs/advanced-topics/building-from-source/#linux__building