我刚刚安装了 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.
请帮忙!
最佳答案
与 strict-ssl = false
设置,也许使用命令行会起作用?
例如apm search package-name
apm install package-name
关于package - Atom 包 - 无法验证第一个证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49382643/