Describe the bug
when attempting to use the smui-theme template command from behind a proxy, node-fetch fails with ETIMEDOUT. i believe this is because node-fetch doesn't support proxies
> npx smui-theme template src/theme
Creating theme files...
Fetching latest theme file from SMUI site...
smui-theme template <location>
Create an SMUI theme template in a given directory
Positionals:
location The output directory. If it doesn't exist, it will be created.
[string] [required]
Options:
--version Show version number [boolean]
--help Show help [boolean]
-d, --include-dark Include a dark theme. [boolean] [default: true]
FetchError: request to https://raw.githubusercontent.com/hperrin/svelte-material-ui/master/packages/site/src/theme/_smui-theme.scss failed, reason: connect ETIMEDOUT 185.199.109.133:443
at ClientRequest.<anonymous> (C:\project\node_modules\node-fetch\lib\index.js:1491:11)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:494:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT'
}
To Reproduce
Steps to reproduce the behavior:
have a proxy set up and set the HTTP_PROXY and HTTPS_PROXY environment variables
run npx smui-theme template src/theme
Expected behavior
no error
Desktop (please complete the following information):
Describe the bug when attempting to use the
smui-theme template
command from behind a proxy,node-fetch
fails withETIMEDOUT
. i believe this is becausenode-fetch
doesn't support proxiesTo Reproduce Steps to reproduce the behavior:
HTTP_PROXY
andHTTPS_PROXY
environment variablesnpx smui-theme template src/theme
Expected behavior no error
Desktop (please complete the following information):