2016-03-23 69 views
3

我想在Atom上安裝核素,但我得到了follwong錯誤。當我運行在Atom上安裝核素

apm install nuclide

Installing 「[email protected]」 failed.Hide output… 

npm WARN engine [email protected]: 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: [email protected] 
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`

回答

2

我已經能夠從源代碼安裝:

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

運行以下命令,從源代碼編譯核素。

# 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. 
+0

謝謝,這個工作。 – Yahoo