Package listed in MELPA, but not found in package install

末鹿安然 提交于 2019-12-02 17:50:44

In my .emacs file I have

;; packages
(when (>= emacs-major-version 24)
  (require 'package)
  (package-initialize)
  (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
  )

Then, M-x package-list-packages

C-s ensime

and there you go:

ensime 20140718.... available ENhanced Scala Interaction Mode for Emacs

Are you sure your emacs can actually get access to internet?

I had to run M-x package-refresh-contents. Once I did that, the files were found.

Here's what my .emacs looks like:

(cond
 ((>= 24 emacs-major-version)
  (require 'package)
  (package-initialize)
  (add-to-list 'package-archives
           '("melpa-stable" . "http://stable.melpa.org/packages/") t)
  (package-refresh-contents)
 )
)

After doing the usual editing of .emacs to make melpa avalaible and restarting Emacs, I searched the list of packages for the one I wanted.

M-x package-list-packages
C-s <package_name>

Then I clicked on the name of the package and pressed the install button. I am unsure as to why M-x package-install RET <package_name> failed, but clicking the install button worked for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!