在Atom上安装核素

Yah*_*hoo 6 node.js atom-editor

我正在尝试在Atom上安装nuclide,但是却收到follwong错误。当我跑步

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
Run Code Online (Sandbox Code Playgroud)

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

小智 9

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

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
Run Code Online (Sandbox Code Playgroud)

通过以下方式验证安装:

Open Atom.
Go to Atom | Preferences.
Click on Packages.
Verify nuclide as one of the packages.
Run Code Online (Sandbox Code Playgroud)

  • 与原子相连的核素。它显示在软件包列表中。但是每次抛出错误时,`无法加载nuclide程序包都找不到模块'bla bla bla',而该错误是从nuclide程序包中抛出的。原子:1.34.0 x64和核素:0.390.0。如上所示将核素添加到原子上。 (2认同)

Mua*_*uaz 5

这为我解决了这个问题。

$ 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
Run Code Online (Sandbox Code Playgroud)

npm install 没有安装所有必需的模块。不断给我错误,找不到模块...这是在他们的文档中给出的。 https://nuclide.io/docs/advanced-topics/building-from-source/#linux__building