【问题标题】:Atom Package - Unable to verify the first certificateAtom 包 - 无法验证第一个证书
【发布时间】:2018-08-29 04:11:27
【问题描述】:

我刚刚安装了 Atom 文本编辑器。当我尝试安装我的第一个软件包时,我收到以下错误:-

"Unable to verify the first certificate"

在尝试搜索包时会发生这种情况,例如埃米特,AtomLinter。我已经重新启动了我的机器,但仍然收到相同的错误消息。

我的 npm 和 apm 配置设置如下:-

$ npm config list && apm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/5.5.1 node/v8.9.1 win32 x64"

; userconfig C:\Users\edwarm4\.npmrc
https-proxy = "http://proxy2.nttvpn.via.novonet:80/"
proxy = "http://proxy2.nttvpn.via.novonet:80/"
strict-ssl = false

; builtin config undefined
prefix = "D:\\AppData\\edwarm4\\Application Data\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Program Files\Git
; HOME = C:\Users\edwarm4
; "npm config ls -l" to show all defaults.

; cli configs
globalconfig = "C:\\Users\\edwarm4\\.atom\\.apm\\.apmrc"
user-agent = "npm/3.10.10 node/v6.9.5 win32 x64"
userconfig = "C:\\Users\\edwarm4\\.atom\\.apmrc"

; environment configs
node-gyp = "C:/Users/edwarm4/AppData/Local/atom/app-1.25.0/resources/app/apm/bin                                                                                                                                                                                               /../node_modules/.bin/node-gyp"
python = "C:/Users/edwarm4/AppData/Local/atom/app-1.25.0/resources/app/apm/bin/p                                                                                                                                                                                               ython-interceptor.sh"

; userconfig C:\Users\edwarm4\.atom\.apmrc
https-proxy = "http://proxy2.nttvpn.via.novonet:80/"
proxy = "http://proxy2.nttvpn.via.novonet:80/"
strict-ssl = false

; globalconfig C:\Users\edwarm4\.atom\.apm\.apmrc
cache = "C:\\Users\\edwarm4\\.atom\\.apm"
progress = false

; node bin location = C:\Users\edwarm4\AppData\Local\atom\app-1.25.0\resources\a                                                                                                                                                                                               pp\apm\bin\node.exe
; cwd = C:\Program Files\Git
; HOME = C:\Users\edwarm4
; "npm config ls -l" to show all defaults.

请帮忙!

【问题讨论】:

    标签: package atom-editor


    【解决方案1】:

    设置了strict-ssl = false,也许使用命令行会起作用?

    例如

    apm search package-name

    apm install package-name

    【讨论】:

      【解决方案2】:

      对我来说,这些都不起作用。我已安装 AdGuard,必须执行以下操作(在 Windows 11 上运行):

      • 在 AdGuard > 常规设置 > 高级设置中输入完整的 Atom 应用程序路径,将 Atom 应用程序排除在过滤之外。
        • App Path一般为:“C:\Users\USER_NAME\AppData\Local\atom\atom.exe”
      • 另外,您需要将“atom.io”添加到 HTTPS 排除列表中。 (设置 -> 网络 -> HTTPS 过滤 -> 排除 -> + 添加 atom.io -> 然后点击保存)。

      这使它在没有其他配置更改的情况下对我有用。如果您没有安装 AdGuard 或其他此类应用程序,则可能需要将其他防病毒/反恶意软件应用程序排除在外。

      【讨论】:

        【解决方案3】:

        如果您使用的是 Windows 10,请暂时关闭勒索软件防护。 RP 运行会导致这个问题。

        【讨论】:

          猜你喜欢
          • 2021-10-20
          • 2021-01-02
          • 2020-02-17
          • 2021-03-26
          • 1970-01-01
          • 2020-03-29
          • 2021-06-15
          • 1970-01-01
          • 2017-09-07
          相关资源
          最近更新 更多