Emacs 找不到要安装的包

Hoa*_*ang 4 emacs projectile melpa

我在尝试自动安装 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.
Run Code Online (Sandbox Code Playgroud)

xuc*_*ang 8

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

您还可以从软件包菜单(通过 进入M-x list-packages)安装软件包,刷新将自动完成。


Hoa*_*ang 5

这是我的解决方案:

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

  • 搜索包名称:'projectile'

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