4

尝试自动安装 Emacs 包时出现此错误。

Warning (initialization): An error occurred while loading `/Users/username/.emacs.d/init.el':

File error: http://melpa.org/packages/projectile-20150619.800.el, Not found

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.
4

4 回答 4

4

您需要先刷新 ELPA 包存档M-x package-refresh-contents,因为您的包已过时,因此包管理器无法为您下载包。

您也可以从Package Menu安装包(通过 进入M-x list-packages),刷新将自动完成。

于 2015-06-20T13:16:44.130 回答
3

这是我的解决方案:

  • 打开浏览器,输入: http: //melpa.org/

  • 搜索包名:'projectile'

  • 然后下载并解压包到~/.emacs.d/elpa

于 2015-06-20T11:28:07.093 回答
1

如果您使用 ubuntu,您也可以apt-get install elpa-projectile按照文档中的说明使用。

于 2017-01-03T14:22:13.990 回答
0

发生这种情况的一个原因是您可能会在设置 melpa 连接之前尝试在 emacs.el 文件中设置包,因此您的包列表要小得多。尝试在那里禁用它并刷新包列表以查看是否有帮助。

于 2021-11-19T16:52:38.920 回答