I cannot install NLopt

I have trouble installing NLopt package. The error message is shown below. I’d appreciate any help on this.

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At line:1 char:1
+ (new-object net.webclient).DownloadFile("https://github.com/stevengj/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

ERROR: LoadError: failed process: Process(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -NoProfile -Command '(new-object net.webclient).DownloadFile("https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2-dll32.zip", "c:\Users\ms5vs\.julia\v0.6\NLopt\deps\downloads\nlopt-2.4.2-dll32.zip")'`, ProcessExited(1)) [1]

You appear to be affected by the GitHub TLS change (see Errors for Git / Pkg). Try running Pkg.update() which should install the new BinDeps.jl to fix this issue.

That solved my problem. Thank you.