来自melpa的js2-refactor:包“emacs-24.1”不可用 [英] js2-refactor from melpa: Package `emacs-24.1' is unavailable
问题描述
package-compute-transaction:包emacs-24.1不可用
pre>
任何想法可能是什么?实际上,这可能来自js2-refactor的依赖:js2-mode。它给出了相同的错误。
解决方案这样做的原因可能是一个滞留的旧版本的
包。 el
在您的加载路径。package.el
正式包含在GNU Emacs 24中,早期Emacs版本的可下载文件不支持对内置程序包的依赖(emacs -24.1
在这里被认为是一个内置的包。)
键入
Mx locate-library RET包
找到Emacs从哪里获取它的package.el
。它显示的路径应以lisp / emacs-lisp / package.elc
结尾。如果没有,请尝试删除指定的文件(或更改加载路径,因此Emacs没有找到它)。I'm on GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0), but when I try to use package (melpa) to install js2-refactor I get this odd error:
package-compute-transaction: Package `emacs-24.1' is unavailable
Any ideas what this could be about? Actually, this might be coming from a dependency of js2-refactor: js2-mode. It gives the same error.
解决方案The reason for this can be a lingering old version of
package.el
in your load path.package.el
was officially included in GNU Emacs 24, and the downloadable file for earlier Emacs versions doesn't support dependencies on built-in packages (emacs-24.1
is considered a built-in package here).Type
M-x locate-library RET package
to find where Emacs is getting itspackage.el
from. The path it shows should end withlisp/emacs-lisp/package.elc
. If it doesn't, try getting rid of the indicated file (or changing the load path so Emacs doesn't find it).这篇关于来自melpa的js2-refactor:包“emacs-24.1”不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!