信息
$ 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
如果我做错了或者有关于如何升级这个核素包的解决方法,请告诉我。
答案 0 :(得分:2)
现在我根据本指南手动制作了核素:http://nuclide.io/docs/advanced-topics/building-from-source。
git clone https://github.com/facebook/nuclide.git
cd nuclide
npm install
apm link
它解决了我的问题。
答案 1 :(得分:1)
这已经解决。
这个错误发生在2016年3月臭名昭着的'left-pad' unpublishing期间。“left-pad”得到的提及最多,但是'relative-date'也是未发布的包。
这不是Nuclide本身的问题,而是下载其依赖项。