{"action":"opened","issue":{"url":"https://api.github.com/repos/felixrieseberg/npm-windows-upgrade/issues/55","labels_url":"https://api.github.com/repos/felixrieseberg/npm-windows-upgrade/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/felixrieseberg/npm-windows-upgrade/issues/55/comments","events_url":"https://api.github.com/repos/felixrieseberg/npm-windows-upgrade/issues/55/events","html_url":"https://github.com/felixrieseberg/npm-windows-upgrade/issues/55","id":126682325,"number":55,"title":"Upgrade fails because it doesn't respect `npm config set cafile`","user":{"login":"klauern","id":4735,"avatar_url":"https://avatars.githubusercontent.com/u/4735?v=3","gravatar_id":"","url":"https://api.github.com/users/klauern","html_url":"https://github.com/klauern","followers_url":"https://api.github.com/users/klauern/followers","following_url":"https://api.github.com/users/klauern/following{/other_user}","gists_url":"https://api.github.com/users/klauern/gists{/gist_id}","starred_url":"https://api.github.com/users/klauern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klauern/subscriptions","organizations_url":"https://api.github.com/users/klauern/orgs","repos_url":"https://api.github.com/users/klauern/repos","events_url":"https://api.github.com/users/klauern/events{/privacy}","received_events_url":"https://api.github.com/users/klauern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-14T15:49:30Z","updated_at":"2016-01-14T15:49:30Z","closed_at":null,"body":"I have a corporate proxy that overrides certificates.  For most things, this is an easy fix, as I just provide a [`cafile` config](https://docs.npmjs.com/misc/config#cafile).\r\n\r\nHowever, this tool doesn't respect that setting, as shown in this output:\r\n\r\n```sh\r\nC:\\Users\\A03182\r\nλ npm-windows-upgrade\r\nnpm-windows-upgrade 1.2.0\r\n? This tool will upgrade npm. Do you want to continue? Yes\r\n? Which version do you want to install? 3.5.4\r\nUpgrading... /Error:  npm\r\nError:   ERR!\r\nError:  fetch failed https://registry.npmjs.org/npm/-/npm-3.5.4.tgz\r\n\r\nError:  npm\r\nError:\r\nError:  WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain\r\n\r\nUpgrading... /Error:  npm\r\nError:   ERR! fetch failed https://registry.npmjs.org/npm/-/npm-3.5.4.tgz\r\n\r\nError:  npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain\r\n\r\nUpgrading... \\Error:  npm ERR! fetch failed https://registry.npmjs.org/npm/-/npm-3.5.4.tgz\r\n\r\nError:  npm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"npm@3.5.4\"\r\nnpm ERR! node v5.2.0\r\nnpm ERR! npm  v3.3.12\r\nnpm ERR! code SELF_SIGNED_CERT_IN_CHAIN\r\n\r\nnpm ERR! self signed certificate in certificate chain\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nError:\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\Program Files\\nodejs\\npm-debug.log\r\n\r\nUpgrading... -\r\n\r\nUpgrading (fallback method)... |You wanted to install npm 3.5.4, but the installed version is3.3.12.\r\nPlease consider reporting your trouble to http://aka.ms/npm-issues.\r\n\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/4735/12329062/1487e880-baa4-11e5-8513-1e29ea31a8ac.png)\r\n"}}