I am trying to set up the environment for windows. I have built the code from the source using nim! and after following the instructions. Using nimble giving the issue.
nimble refresh
or
C:\Projects\nim>nimble install winold --verbose
Reading official package list
Prompt: No local packages.json found, download it from internet? [y/N]
Answer: y
Downloading Official package list
Trying https://github.com/nim-lang/packages/raw/master/packages.json
Connecting to proxy at (scheme: http, username: , password: , hostname: xyz.com, port: 80, path: , query: , anchor: , opaque: false)
Warning: Could not download: invalid http version, 0000000000309058"<html><body>You are being <a href=\"https://raw.githubusercontent.com/nim-lang/packages/master/packages.json\">redirected</a>.</body></html>HTTP/1.1 301 Moved Permane
ntly"
Trying http://irclogs.nim-lang.org/packages.json
Connecting to proxy at (scheme: http, username: , password: , hostname: xyz.com, port: 80, path: , query: , anchor: , opaque: false)
Warning: Could not download: invalid http version, 00000000002EFE90"0"
Trying http://nim-lang.org/nimble/packages.json
Connecting to proxy at (scheme: http, username: , password: , hostname: xyz.com, port: 80, path: , query: , anchor: , opaque: false)
Warning: Could not download: invalid http version, 0000000000311F80"0"
Error: Refresh failed
... Could not download: invalid http version, 0000000000311F80"0"
ThanksThis is fixed in this PR (I hope) https://github.com/nim-lang/Nim/pull/6694
As a workaround you can download the packages.json file manually and place it into ~/.nimble/packages.json