-
Notifications
You must be signed in to change notification settings - Fork 241
Errors installing @ampproject/toolbox-optimizer@2.4.0 behind proxy #832
Copy link
Copy link
Closed
Labels
Description
npm install --save @ampproject/toolbox-optimizer@2.4.0node-fetch does not read the http_proxy variables, so there are issues when installing in networks where a proxy is required.
See node-fetch issue about this
@ampproject/toolbox-optimizer@2.4.0 postinstall /home/suprauser/workspace/wss_wss_nextjs-demo_PR-39/node_modules/@ampproject/toolbox-optimizer
AMP Optimizer ERROR Could not fetch validator rules { FetchError: request to https://cdn.ampproject.org/v0/validator.json failed, reason: connect ETIMEDOUT 172.217.169.33:443
at ClientRequest.<anonymous> (/home/suprauser/workspace/node_modules/node-fetch/lib/index.js:1455:11)
at ClientRequest.emit (events.js:189:13)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:189:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://cdn.ampproject.org/v0/validator.json failed, reason: connect ETIMEDOUT 172.217.169.33:443',
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT' }Reactions are currently unavailable