I tried to install emacs and in an attempt to install MELPA, tried:
(this is my
(package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) (require 'package) (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) (not (gnutls-available-p)))) (proto (if no-ssl "http" "https"))) (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)) (package-initialize)
When I tried running the following commands
M-x package-initialize then
M-x package-refresh-contents, it said that it Failed to download 'gnu' archive. Is there anyway of getting around this?
I'm using MacOS and using emacs version 26.2.