(fix) remove deprecated always-auth npm config

This commit is contained in:
TP Honey
2022-12-20 10:08:24 +00:00
parent efce6761d0
commit b4ed9cd8a3
-8
View File
@@ -211,9 +211,6 @@ func (p *Plugin) authenticate() error {
cmds = append(cmds, registryCommand(p.settings.Registry))
}
// Write auth command
cmds = append(cmds, alwaysAuthCommand())
// Write skip verify command
if p.network.SkipVerify {
cmds = append(cmds, skipVerifyCommand())
@@ -319,11 +316,6 @@ func registryCommand(registry string) *exec.Cmd {
return exec.Command("npm", "config", "set", "registry", registry)
}
// alwaysAuthCommand forces authentication.
func alwaysAuthCommand() *exec.Cmd {
return exec.Command("npm", "config", "set", "always-auth", "true")
}
// skipVerifyCommand disables ssl verification.
func skipVerifyCommand() *exec.Cmd {
return exec.Command("npm", "config", "set", "strict-ssl", "false")