[英]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
檢查鏈接: https : //nuclide.io/docs/advanced-topics/building-from-source/#linux__building
不要使用npm install
# Clone the source
$ 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
驗證安裝:
Open Atom.
Go to File | Preferences.
Click on Packages.
Verify nuclide is one of the packages.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.