nerd-icons-install-fonts 报错

Debugger entered--Lisp error: (error "raw.githubusercontent.com/443 getaddrinfo error 11004")
  open-network-stream("raw.githubusercontent.com" #<buffer  *url-http-temp*> "raw.githubusercontent.com" 443 :nowait nil :tls-parameters nil :coding nil)
  open-gnutls-stream("raw.githubusercontent.com" #<buffer  *url-http-temp*> "raw.githubusercontent.com" 443 (:type tls :nowait nil))
  network-stream-open-tls("raw.githubusercontent.com" #<buffer  *url-http-temp*> "raw.githubusercontent.com" 443 (:type tls :nowait nil))
  open-network-stream("raw.githubusercontent.com" #<buffer  *url-http-temp*> "raw.githubusercontent.com" 443 :type tls :nowait nil)
  url-open-stream("raw.githubusercontent.com" #<buffer  *url-http-temp*> "raw.githubusercontent.com" 443 tls)
  url-http-find-free-connection("raw.githubusercontent.com" 443 tls)
  url-http(#s(url :type "https" :user nil :password nil :host "raw.githubusercontent.com" :portspec nil :filename "/rainstormstudio/nerd-icons.el/main/fonts/NFM.ttf" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous nil) #f(compiled-function (&rest args) #<bytecode 0xcd5c0697578c2ef>) (nil) nil tls)
  url-https(#s(url :type "https" :user nil :password nil :host "raw.githubusercontent.com" :portspec nil :filename "/rainstormstudio/nerd-icons.el/main/fonts/NFM.ttf" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous nil) #f(compiled-function (&rest args) #<bytecode 0xcd5c0697578c2ef>) (nil))
  url-retrieve-internal("https://raw.githubusercontent.com/rainstormstudio/..." #f(compiled-function (&rest args) #<bytecode 0xcd5c0697578c2ef>) (nil) nil nil)
  url-retrieve("https://raw.githubusercontent.com/rainstormstudio/..." #f(compiled-function (&rest args) #<bytecode 0xcd5c0697578c2ef>) nil nil nil)
  url-retrieve-synchronously("https://raw.githubusercontent.com/rainstormstudio/...")
  url-copy-file("https://raw.githubusercontent.com/rainstormstudio/..." "d:/emacs-29.1/.emacs.d/font/NFM.ttf" t)
  #f(compiled-function (font) #<bytecode 0x80560e744a7bd8f>)("NFM.ttf")
  nerd-icons-install-fonts(nil)
  funcall-interactively(nerd-icons-install-fonts nil)
  command-execute(nerd-icons-install-fonts record)
  execute-extended-command(nil "nerd-icons-install-fonts" "all icon")
  funcall-interactively(execute-extended-command nil "nerd-icons-install-fonts" "all icon")
  command-execute(execute-extended-command)

看着像是网络问题引起,是否已经翻墙?没有全局代理的话,github上的二进制文件好像下不到

开了全局也不行

如果「全局」是代理软件的全局,是指经过该软件的所有流量全部走某一个 proxy,不是表示接管了所有软件(包括 Emacs)的流量,你需要开启增强模式,或者在 Emacs 里设定:

(setq url-proxy-services
      '(("no_proxy" . "^\\(localhost\\|10\\..*\\|192\\.168\\..*\\)")
        ("http" . "127.0.0.1:6152")
        ("https" . "127.0.0.1:6152")))
1 个赞

谢谢了 。。。。