()
| 976 | } |
| 977 | |
| 978 | function getProxy() { |
| 979 | if (process.env.https_proxy) { |
| 980 | return process.env.https_proxy; |
| 981 | } else { |
| 982 | try { |
| 983 | // Trying to read https-proxy from .npmrc |
| 984 | let httpsProxy = execSync('npm config get https-proxy').toString().trim(); |
| 985 | return httpsProxy !== 'null' ? httpsProxy : undefined; |
| 986 | } catch (e) { |
| 987 | return; |
| 988 | } |
| 989 | } |
| 990 | } |
| 991 | |
| 992 | // See https://github.com/facebook/create-react-app/pull/3355 |
| 993 | function checkThatNpmCanReadCwd() { |
no test coverage detected