Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Unable to install packages behind corporate proxy #322

Closed

Description

@marcuslindfeldt

I get the following error when trying to install a package with apm behind a corporate proxy.

$ apm install linter
Installing linter to /home/marcuslt/.atom/packages 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error 
gyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error
gyp ERR! stack     at ClientRequest.onError (/opt/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:168:17)
gyp ERR! stack     at ClientRequest.g (events.js:180:16)
gyp ERR! stack     at ClientRequest.emit (events.js:95:17)
gyp ERR! stack     at Socket.socketOnData (http.js:1593:9)
gyp ERR! stack     at TCP.onread (net.js:528:27)
gyp ERR! System Linux 3.13.0-46-generic
gyp ERR! command "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.21.0" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure" "--proxy=http://wwwproxy:3128/"
gyp ERR! cwd /home/marcuslt/.atom
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

All proxy settings should be correct and it worked perfectly in earlier versions.

$ apm --version
apm  0.142.0
npm  2.5.1
node 0.10.35
python 2.7.6
git 1.9.1

Activity

  1. kevinsawicki commented on Mar 16, 2015

    @kevinsawicki
    Contributor

    Could you try running apm config ls and verify the proxy settings there look correct?

  2. marcuslindfeldt commented on Mar 17, 2015

    @marcuslindfeldt
    Author

    They seem fine to me and i haven't changed them between versions.

    globalconfig = "/home/marcuslt/.atom/.apm/.apmrc"
    user-agent = "npm/2.5.1 node/v0.10.35 linux x64"
    userconfig = "/home/marcuslt/.atom/.apmrc"
    
    ; environment configs
    http-proxy = "http://<proxy>:<port>"
    https-proxy = "http://<proxy>:<port>"
    proxy = "http://<proxy>:<port>"
    
  3. superbob commented on Mar 19, 2015

    @superbob

    Same here when trying to install Sublime-Style-Column-Selection :

    gyp info it worked if it ends with ok
    gyp info using [email protected]
    gyp info using [email protected] | linux | x64
    gyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz
    gyp WARN install got an error, rolling back install
    gyp ERR! install error 
    gyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error
    gyp ERR! stack     at ClientRequest.onError (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:168:17)
    gyp ERR! stack     at ClientRequest.g (events.js:180:16)
    gyp ERR! stack     at ClientRequest.emit (events.js:95:17)
    gyp ERR! stack     at Socket.socketOnData (http.js:1593:9)
    gyp ERR! stack     at TCP.onread (net.js:528:27)
    gyp ERR! System Linux 3.11.10-25-default
    gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.21.0" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure" "--proxy=http://127.0.0.1:3128/"
    gyp ERR! cwd /home/f_mo/.atom
    gyp ERR! node -v v0.10.35
    gyp ERR! node-gyp -v v1.0.2
    gyp ERR! not ok
    
    $ apm config ls
    ; cli configs
    globalconfig = "/home/f_mo/.atom/.apm/.apmrc"
    user-agent = "npm/2.5.1 node/v0.10.35 linux x64"
    userconfig = "/home/f_mo/.atom/.apmrc"
    
    ; userconfig /home/f_mo/.atom/.apmrc
    http-proxy = "http://127.0.0.1:3128"
    https-proxy = "http://127.0.0.1:3128/"
    strict-ssl = false
    
    ; globalconfig /home/f_mo/.atom/.apm/.apmrc
    cache = "/home/f_mo/.atom/.apm"
    
    ; node bin location = /usr/share/atom/resources/app/apm/bin/node
    ; cwd = /home/f_mo/Téléchargements
    ; HOME = /home/f_mo/.atom/.node-gyp
    ; 'npm config ls -l' to show all defaults.
    
    $ apm --version
    apm  0.142.0
    npm  2.5.1
    node 0.10.35
    python 2.7.6
    git 1.8.4.5
    
  4. kevinsawicki commented on Mar 26, 2015

    @kevinsawicki
    Contributor

    Hmm, I see the command was spawned with --proxy and it looks like it properly picked up the value from the config file.

    Are either of you building Atom from source? I just added support for enabling verbose output from node-gyp when running apm install --verbose.

    So if you build Atom yourselves and then ran apm install <package_name> --verbose using apm 0.151+ it should include confirmation that it is using the right proxy config.

  5. michaelkrnac commented on Mar 27, 2015

    @michaelkrnac

    Same problem here:

    C:\Users\mkrnac>apm install minimap
    Installing minimap to C:\Users\mkrnac\.atom\packages
    gyp info it worked if it ends with ok
    gyp info using [email protected]
    gyp info using [email protected] | win32 | ia32
    gyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz
    gyp WARN install got an error, rolling back install
    gyp
    
    C:\Users\mkrnac>apm --version
    apm  0.149.0
    npm  2.5.1
    node 0.10.35
    python 3.2.4
    git 1.9.5.msysgit.1
    visual studio 2010
    

    Iam also behind a proxy

  6. h-no commented on Apr 7, 2015

    @h-no

    For me this problem started today, Atom was updated to 0.189.0 (installed via webupd8 ppa) and when I tried to update my packages I got this error.

    $ apm update
    Package Updates Available (5)
    ├── autocomplete-plus 2.7.1 -> 2.8.0
    ├── color-picker 1.5.0 -> 1.6.0
    ├── linter-jscs 1.9.0 -> 1.10.0
    ├── linter-jshint 0.1.0 -> 0.1.1
    └── minimap 4.7.1 -> 4.7.5
    
    Would you like to install these updates? (yes) 
    
    Installing [email protected] to /home/hannesna/.atom/packages 
    gyp info it worked if it ends with ok
    gyp info using [email protected]
    gyp info using [email protected] | linux | x64
    gyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
    gyp WARN install got an error, rolling back install
    gyp ERR! install error 
    gyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error
    gyp ERR! stack     at ClientRequest.onError (/opt/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:168:17)
    gyp ERR! stack     at ClientRequest.g (events.js:180:16)
    gyp ERR! stack     at ClientRequest.emit (events.js:95:17)
    gyp ERR! stack     at Socket.socketOnData (http.js:1593:9)
    gyp ERR! stack     at TCP.onread (net.js:528:27)
    gyp ERR! System Linux 3.13.0-49-generic
    gyp ERR! command "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.22.0" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure" "--proxy=http://wwwproxy:3128/"
    gyp ERR! cwd /home/hannesna/.atom
    gyp ERR! node -v v0.10.35
    gyp ERR! node-gyp -v v1.0.2
    gyp ERR! not ok 
    
    $ apm config ls
    ; cli configs
    globalconfig = "/home/hannesna/.atom/.apm/.apmrc"
    user-agent = "npm/2.5.1 node/v0.10.35 linux x64"
    userconfig = "/home/hannesna/.atom/.apmrc"
    
    ; userconfig /home/hannesna/.atom/.apmrc
    https-proxy = "http://wwwproxy:3128/"
    proxy = "http://wwwproxy:3128/"
    
    ; globalconfig /home/hannesna/.atom/.apm/.apmrc
    cache = "/home/hannesna/.atom/.apm"
    
    ; node bin location = /opt/atom/resources/app/apm/bin/node
    ; cwd = /home/hannesna
    ; HOME = /home/hannesna/.atom/.node-gyp
    ; 'npm config ls -l' to show all defaults.
    
    $ apm --version
    apm  0.157.0
    npm  2.5.1
    node 0.10.35
    python 2.7.6
    git 1.9.1
    
  7. h-no commented on Apr 7, 2015

    @h-no

    Installing a new package with --verbose
    (apm 0.157.0)

    $ apm install emmet --verbose
    Installing emmet to /home/hannesna/.atom/packages REQUEST { method: 'GET',
      url: 'https://atom.io/api/packages/emmet',
      json: true,
      retries: 4,
      proxy: 'http://wwwproxy:3128/',
      strictSSL: true,
      headers: { 'User-Agent': 'npm/2.5.1 node/v0.10.35 linux x64' },
      uri: null,
      callback: [Function] }
    REQUEST make request https://atom.io/api/packages/emmet
    REQUEST onRequestResponse https://atom.io/api/packages/emmet 200 { server: 'Cowboy',
      date: 'Tue, 07 Apr 2015 09:13:13 GMT',
      connection: 'keep-alive',
      'strict-transport-security': 'max-age=631152000',
      'x-frame-options': 'DENY',
      'x-xss-protection': '1; mode=block',
      'x-content-type-options': 'nosniff',
      'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\'; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \'self\' \'unsafe-inline\';',
      'content-type': 'application/json; charset=utf-8',
      etag: '"fb6f6e4a651dd173cfc8f11997520e78"',
      'cache-control': 'max-age=0, private, must-revalidate',
      'set-cookie': [ 'request_method=GET; path=/; secure' ],
      'x-request-id': '2e70c448-9ddf-45a5-8cf2-ade29ebb6038',
      'x-runtime': '0.129718',
      'transfer-encoding': 'chunked',
      via: '1.1 vegur' }
    REQUEST finish init function https://atom.io/api/packages/emmet
    REQUEST response end https://atom.io/api/packages/emmet 200 { server: 'Cowboy',
      date: 'Tue, 07 Apr 2015 09:13:13 GMT',
      connection: 'keep-alive',
      'strict-transport-security': 'max-age=631152000',
      'x-frame-options': 'DENY',
      'x-xss-protection': '1; mode=block',
      'x-content-type-options': 'nosniff',
      'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\'; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \'self\' \'unsafe-inline\';',
      'content-type': 'application/json; charset=utf-8',
      etag: '"fb6f6e4a651dd173cfc8f11997520e78"',
      'cache-control': 'max-age=0, private, must-revalidate',
      'set-cookie': [ 'request_method=GET; path=/; secure' ],
      'x-request-id': '2e70c448-9ddf-45a5-8cf2-ade29ebb6038',
      'x-runtime': '0.129718',
      'transfer-encoding': 'chunked',
      via: '1.1 vegur' }
    REQUEST end event https://atom.io/api/packages/emmet
    REQUEST has body https://atom.io/api/packages/emmet 18497
    REQUEST emitting complete https://atom.io/api/packages/emmet
    REQUEST { method: 'GET',
      url: 'https://www.atom.io/api/packages/emmet/versions/2.3.6/tarball',
      proxy: 'http://wwwproxy:3128/',
      strictSSL: true,
      headers: { 'User-Agent': 'npm/2.5.1 node/v0.10.35 linux x64' },
      uri: null,
      callback: undefined }
    REQUEST make request https://www.atom.io/api/packages/emmet/versions/2.3.6/tarball
    REQUEST onRequestResponse https://www.atom.io/api/packages/emmet/versions/2.3.6/tarball 302 { server: 'Cowboy',
      date: 'Tue, 07 Apr 2015 09:13:14 GMT',
      connection: 'keep-alive',
      'strict-transport-security': 'max-age=631152000',
      'x-frame-options': 'DENY',
      'x-xss-protection': '1; mode=block',
      'x-content-type-options': 'nosniff',
      'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\'; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \'self\' \'unsafe-inline\';',
      location: 'https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6',
      'content-type': 'text/html; charset=utf-8',
      'cache-control': 'no-cache',
      'set-cookie': [ 'request_method=GET; path=/; secure' ],
      'x-request-id': '1a4c385a-f4ad-4e1c-bb90-31931dbe25fc',
      'x-runtime': '0.072120',
      'transfer-encoding': 'chunked',
      via: '1.1 vegur' }
    REQUEST redirect https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6
    REQUEST redirect to https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6
    REQUEST {}
    REQUEST response end https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6 302 { server: 'Cowboy',
      date: 'Tue, 07 Apr 2015 09:13:14 GMT',
      connection: 'keep-alive',
      'strict-transport-security': 'max-age=631152000',
      'x-frame-options': 'DENY',
      'x-xss-protection': '1; mode=block',
      'x-content-type-options': 'nosniff',
      'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\'; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \'self\' \'unsafe-inline\';',
      location: 'https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6',
      'content-type': 'text/html; charset=utf-8',
      'cache-control': 'no-cache',
      'set-cookie': [ 'request_method=GET; path=/; secure' ],
      'x-request-id': '1a4c385a-f4ad-4e1c-bb90-31931dbe25fc',
      'x-runtime': '0.072120',
      'transfer-encoding': 'chunked',
      via: '1.1 vegur' }
    REQUEST make request https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6
    REQUEST onRequestResponse https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6 200 { 'content-length': '77542',
      'access-control-allow-origin': 'https://render.githubusercontent.com',
      'content-security-policy': 'default-src \'none\'',
      'x-xss-protection': '1; mode=block',
      'x-frame-options': 'deny',
      'x-content-type-options': 'nosniff',
      'strict-transport-security': 'max-age=31536000',
      vary: 'Authorization,Accept-Encoding',
      etag: '"32913f368285e9a98cfcdc643096bd7df4a99c2e"',
      'content-type': 'application/x-gzip',
      'content-disposition': 'attachment; filename=emmetio-emmet-atom-v2.3.6-0-g32913f3.tar.gz',
      date: 'Tue, 07 Apr 2015 09:13:15 GMT' }
    REQUEST finish init function https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6
    REQUEST response end https://codeload.github.com/emmetio/emmet-atom/legacy.tar.gz/v2.3.6 200 { 'content-length': '77542',
      'access-control-allow-origin': 'https://render.githubusercontent.com',
      'content-security-policy': 'default-src \'none\'',
      'x-xss-protection': '1; mode=block',
      'x-frame-options': 'deny',
      'x-content-type-options': 'nosniff',
      'strict-transport-security': 'max-age=31536000',
      vary: 'Authorization,Accept-Encoding',
      etag: '"32913f368285e9a98cfcdc643096bd7df4a99c2e"',
      'content-type': 'application/x-gzip',
      'content-disposition': 'attachment; filename=emmetio-emmet-atom-v2.3.6-0-g32913f3.tar.gz',
      date: 'Tue, 07 Apr 2015 09:13:15 GMT' }
    gyp info it worked if it ends with ok
    gyp verb cli [ '/opt/atom/resources/app/apm/bin/node',
    gyp verb cli   '/opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
    gyp verb cli   'install',
    gyp verb cli   '--target=0.22.0',
    gyp verb cli   '--dist-url=https://atom.io/download/atom-shell',
    gyp verb cli   '--arch=x64',
    gyp verb cli   '--ensure',
    gyp verb cli   '--verbose',
    gyp verb cli   '--proxy=http://wwwproxy:3128/' ]
    gyp info using [email protected]
    gyp info using [email protected] | linux | x64
    gyp verb command install []
    gyp verb install input version string "0.22.0"
    gyp verb install installing version: 0.22.0
    gyp verb install --ensure was passed, so won't reinstall if already installed
    gyp verb install version not already installed, continuing with install 0.22.0
    gyp verb ensuring nodedir is created /home/hannesna/.atom/.node-gyp/.node-gyp/0.22.0
    gyp verb created nodedir /home/hannesna/.atom/.node-gyp/.node-gyp/0.22.0
    gyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
    gyp verb download using proxy url: "http://wwwproxy:3128/"
    REQUEST { proxy: 'http://wwwproxy:3128/',
      headers: { 'User-Agent': 'node-gyp v1.0.2 (node v0.10.35)' },
      uri: 'https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz',
      callback: undefined }
    REQUEST make request https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
    REQUEST onRequestResponse https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz 302 { server: 'Cowboy',
      date: 'Tue, 07 Apr 2015 09:13:15 GMT',
      connection: 'keep-alive',
      'strict-transport-security': 'max-age=631152000',
      'x-frame-options': 'DENY',
      'x-xss-protection': '1; mode=block',
      'x-content-type-options': 'nosniff',
      'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\'; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \'self\' \'unsafe-inline\';',
      location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.22.0/node-v0.22.0.tar.gz',
      'content-type': 'text/html; charset=utf-8',
      'cache-control': 'no-cache',
      'set-cookie': [ 'request_method=GET; path=/; secure' ],
      'x-request-id': '5c25953b-3419-4434-a6e2-86a90109fa89',
      'x-runtime': '0.015554',
      'transfer-encoding': 'chunked',
      via: '1.1 vegur' }
    REQUEST redirect http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.22.0/node-v0.22.0.tar.gz
    REQUEST redirect to http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.22.0/node-v0.22.0.tar.gz
    REQUEST {}
    REQUEST response end http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.22.0/node-v0.22.0.tar.gz 302 { server: 'Cowboy',
      date: 'Tue, 07 Apr 2015 09:13:15 GMT',
      connection: 'keep-alive',
      'strict-transport-security': 'max-age=631152000',
      'x-frame-options': 'DENY',
      'x-xss-protection': '1; mode=block',
      'x-content-type-options': 'nosniff',
      'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\'; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \'self\' \'unsafe-inline\';',
      location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.22.0/node-v0.22.0.tar.gz',
      'content-type': 'text/html; charset=utf-8',
      'cache-control': 'no-cache',
      'set-cookie': [ 'request_method=GET; path=/; secure' ],
      'x-request-id': '5c25953b-3419-4434-a6e2-86a90109fa89',
      'x-runtime': '0.015554',
      'transfer-encoding': 'chunked',
      via: '1.1 vegur' }
    REQUEST make request http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.22.0/node-v0.22.0.tar.gz
    gyp WARN install got an error, rolling back install
    gyp verb command remove [ '0.22.0' ]
    gyp verb remove using node-gyp dir: /home/hannesna/.atom/.node-gyp/.node-gyp
    gyp verb remove removing target version: 0.22.0
    gyp verb remove removing development files for version: 0.22.0
    gyp ERR! install error 
    gyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error
    gyp ERR! stack     at ClientRequest.onError (/opt/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:168:17)
    gyp ERR! stack     at ClientRequest.g (events.js:180:16)
    gyp ERR! stack     at ClientRequest.emit (events.js:95:17)
    gyp ERR! stack     at Socket.socketOnData (http.js:1593:9)
    gyp ERR! stack     at TCP.onread (net.js:528:27)
    gyp ERR! System Linux 3.13.0-49-generic
    gyp ERR! command "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.22.0" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure" "--verbose" "--proxy=http://wwwproxy:3128/"
    gyp ERR! cwd /home/hannesna/.atom
    gyp ERR! node -v v0.10.35
    gyp ERR! node-gyp -v v1.0.2
    gyp ERR! not ok 
    
  8. noseglid commented on Apr 7, 2015

    @noseglid
  9. wmira commented on Apr 7, 2015

    @wmira

    Getting this as well. Im behind a proxy and have correct config. I can browse packages from atom but install throws the gyp error.

  10. wsouto commented on Apr 7, 2015

    @wsouto

    Same here. Can browse and search packages, but not install. The error is the same of everybody.

    Seems to me that this error is not because the proxy. Apm can search packages, which means that it's passing the proxy normally. Trying to install any packages and gyp gives a "Parse Error" as the cause of not being able to make the connection:

    gyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error

  11. noseglid commented on Apr 16, 2015

    @noseglid

    @fujisaks Can you detail how you got this to work? I'm on severly outdated packages now because I can't upgrade.

  12. noseglid commented on Apr 16, 2015

    @noseglid

    @fujisaks Thanks so much. I modified your command for linux and it worked. This is what I did (Ubuntu 14.04):

    HOME=~/.atom/.node-gyp/ /opt/atom/resources/app/apm/bin/node /opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js "install" "--target=0.22.0" "--dist-url=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" "--arch=x64" "--ensure" "--verbose" "--proxy=http://proxy:80"
    
  13. morberg commented on Apr 16, 2015

    @morberg

    Thanks @fujisaks Works like a charm here! The only thing I needed to change was the proxy.

  14. 161 remaining items

  15. ethernal commented on Apr 11, 2017

    @ethernal

    I can confirm the same error on 1.15 not sure, but I believe it worked with cntlm before that version.

  16. wattachai commented on Apr 13, 2017

    @wattachai

    1.16 has just been released. I could confirm that the workaround of setting proxy in .apmrc and environment variable works on Windows 10. Note that, "use proxy setting when calling APM" is disabled. It seems there is a regression in 1.15 release.

  17. ethernal commented on Apr 13, 2017

    @ethernal

    would you please explain what you mean by "use proxy setting when calling APM" @wattachai? If use of apmrc can be controlled during runtime that would fix the issue for portable version. I'll be testing 1.16 momentarly.

  18. ethernal commented on Apr 13, 2017

    @ethernal

    The portable installation (from ZIP file) still does not respect ENV variables on Windows and requires a use of .apmrc file inside .atom folder (and that file is not present there by default).

  19. wattachai commented on Apr 13, 2017

    @wattachai

    @ethernal "use proxy setting when calling APM" is a setting you can find on setting page of atom itself.

    screen shot 2017-04-13 at 20 12 45

    Let me describe what I did.
    I disabled the above setting and made change to .apmrc with the following command in cmd:

    apm config set http-proxy http://<proxy>:<port>  
    apm config set https-proxy http://<proxy>:<port>
    apm config set strict-ssl false
    apm config set registry http://registry.npmjs.org
    

    After that, package update worked but I couldn't see any package detail, no. of download or package thumbnail.

    Not giving up, I added a system environment variable: HTTP_PROXY pointing it to the same proxy in .apmr and restarted machine. Now package page of atom works like a charm. Yeah!

    I will try to enable "use proxy setting when calling APM" without those workaround later with a hope that it would just work. (finger crossed)

  20. az-z commented on Apr 27, 2017

    @az-z

    well this is good. but why apm can not supporting SSL checks? i have CA for the proxy and curl is working just fine when i point it to the right directory...
    I don't think this ticket is resolved. Please reopen.

  21. chadflorian commented on Jul 27, 2017

    @chadflorian

    +1 for this issue still existing... 407 error no matter that I try from this thread.

  22. jekriske-lilly commented on Jul 27, 2017

    @jekriske-lilly
  23. chadflorian commented on Jul 27, 2017

    @chadflorian

    I've tried that as well as every other iteration in this thread.

  24. az-z commented on Jul 27, 2017

    @az-z
  25. chadflorian commented on Jul 27, 2017

    @chadflorian

    cntlm workaround works... but man.. what a PITA

  26. az-z commented on Jul 27, 2017

    @az-z
  27. Rexeh commented on Aug 9, 2017

    @Rexeh

    One solution that has worked for me. Install Fiddler on your machine, have it open and ensure Rules > Automatically Authenticate is set.

    Set your https-proxy to 127.0.0.1:8888

    All traffic will then route via Fiddler and handle all NTLM negotiations.

  28. yselivonchyk commented on Dec 11, 2017

    @yselivonchyk

    The comment by gabo2000git (Sep 6, 2016) helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions