我刚刚安装了Atom文本编辑器。当我尝试安装我的第一个包时,我收到以下错误: -
"Unable to verify the first certificate"
尝试搜索包时会发生这种情况,例如Emmet,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.
请帮忙!
答案 0 :(得分:1)
设置了strict-ssl = false
,也许可以使用命令行?
例如
apm search package-name
apm install package-name
答案 1 :(得分:0)
如果您使用的是Windows 10,请暂时关闭勒索软件防护。 RP运行会导致此问题。