Блог пользователя jhonber

Автор jhonber, история, 9 лет назад, По-английски

Hello Codeforces,

I have been working on an app to download the source code of submissions with verdict Accepted from Codeforces.

Currently the app continues in development and any suggestion is received :P.

The name of app is get-submissions:

To install

# npm install -g get-submissions

To use

$ get-submissions -h <handle> -c <count> -d <directory>

Full documentation and repository here

  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

Got this error message on running "npm install -g get-submissions" Pastebin. How to overcome this.Thanks !

  • »
    »
    9 лет назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    Have you read the message? Does that describe your situation (which is common in schools)?

    This is most likely not a problem with npm itself
    and is related to network connectivity.
    In most cases you are behind a proxy or have bad network settings.
    
    If you are behind a proxy, please make sure that the
    network 'proxy' config is set properly.  See: 'npm help config'
    
    • »
      »
      »
      9 лет назад, # ^ |
      Rev. 2   Проголосовать: нравится +7 Проголосовать: не нравится

      Installed it by setting proxies in .npmrc file by adding:
      proxy http://proxy.company.com:8080 https-proxy http://proxy.company.com:8080

      But now nothing is happening on running "get-submissions -h handle" Command :(

      Can anybody suggest me some other way to do same thing, Maybe not from terminal !

      • »
        »
        »
        »
        9 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        Be sure that you installed the package with the parameter -g (you need to be root or use sudo for that), this parameter is necessary to install the command globally, it means that you can call the command get-submissions from the command line; without the parameter -g, a new folder is created in your current path called node_modules/, to use the package in this way, you need to execute ./node_modules/get-submissions/bin/getSubmissions.js -h handle.

        • »
          »
          »
          »
          »
          9 лет назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          Does your module support http proxy by itself? I doubt it. According to answers for this question there is no way of global proxy configuration for node applications, except for some kludge modules who override http.proxy.

          If you are willing to add proxy support, you can make your application respect the http_proxy environment variable, as many Linux programs do.