来自melpa的js2-refactor:包“emacs-24.1”不可用 [英] js2-refactor from melpa: Package `emacs-24.1' is unavailable

查看:271
本文介绍了来自melpa的js2-refactor:包“emacs-24.1”不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GNU Emacs 24.3.50.1(x86_64-pc-linux-gnu,GTK +版本3.6.0),但是当我尝试使用包(melpa)来安装js2-refactor时,我得到这个奇怪的错误: / p>

  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 its package.el from. The path it shows should end with lisp/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆