4

信息

$ apm -v
apm  1.6.0
npm  2.13.3
node 0.10.40
python 2.7.10
git 2.6.4

$ apm update
Package Updates Available (1)
└── nuclide 0.124.0 -> 0.125.0
Would you like to install these updates? (yes)

错误:

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 15.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/chandan/.atom/.apm/.apmrc" "--userconfig" "/Users/chandan/.atom/.apmrc" "install" "/private/var/folders/jx/80gvpbb525z56t19l_n172hw0000gn/T/d-116223-40264-1wsir87/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/jx/80gvpbb525z56t19l_n172hw0000gn/T/apm-install-dir-116223-40264-17hzbk1/npm-debug.log


如果我做错了什么或者是否有关于如何升级此核素包的解决方法,请告诉我。

4

2 回答 2

2

现在我根据本指南手动构建核素:http: //nuclide.io/docs/advanced-topics/building-from-source

git clone https://github.com/facebook/nuclide.git
cd nuclide
npm install
apm link

它为我解决了这个问题。

于 2016-03-23T12:21:10.297 回答
1

这解决了。

此错误发生在 2016 年 3 月臭名昭著的“left-pad”取消发布期间。“left-pad”收到的提及最多,但“relative-date”也在未发布的软件包中。

这不是 Nuclide 本身的问题,而是下载其依赖项的问题。

于 2016-04-27T15:11:26.343 回答