I tried
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
npm config set strict-ssl false
but that didn't help.
Here's what eventually worked:
Add .typingsrc in the root folder with the following lines:
proxy=http://my-proxy-server:8080
rejectUnauthorized=false
But I don't have to do this for other repos.
C:\Users\Paul.Abrams\Source\Repos\tsMochaWebpackDemo>npm install
TypescriptMochaWebpackDemo@1.0.0 postinstall C:\Users\Paul.Abrams\Source\Repos
\tsMochaWebpackDemo
typings install --overwrite --save
typings ERR! message Unable to connect to "https://raw.githubusercontent.com/Def
initelyTyped/DefinitelyTyped/5d0f2126c8dac8fce0ff020218aea06607213b0d/mocha/moch
a.d.ts"
typings ERR! caused by getaddrinfo EAI_AGAIN raw.githubusercontent.com:443
typings ERR!
typings ERR! cwd C:\Users\Paul.Abrams\Source\Repos\tsMochaWebpackDemo
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Pau
l.Abrams\Source\Repos\tsMochaWebpackDemo\node_modules\typings\dist\bin.js
" "install" "--overwrite" "--save"
typings ERR! node -v v8.11.1
typings ERR! typings -v 2.1.1
typings ERR! code EUNAVAILABLE
typings ERR!
typings ERR! If you need help, you may report this error at:
typings ERR! https://github.com/typings/typings/issues
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! TypescriptMochaWebpackDemo@1.0.0 postinstall: typings install --overwr ite --save
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the TypescriptMochaWebpackDemo@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Paul.Abrams\AppData\Roaming\npm-cache_logs\2018-05-01T15_
30_44_643Z-debug.log
C:\Users\Paul.Abrams\Source\Repos\tsMochaWebpackDemo>
I tried
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
npm config set strict-ssl false
but that didn't help.
Here's what eventually worked:
Add .typingsrc in the root folder with the following lines:
proxy=http://my-proxy-server:8080
rejectUnauthorized=false
But I don't have to do this for other repos.