You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Error when executing corepack prepare --activate pnpm@latest:
Internal Error: Error when performing the request to https://registry.npmjs.org/pnpm; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
at ClientRequest.<anonymous> (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:42195:14)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
The command '/bin/sh -c corepack prepare --activate pnpm@latest' returned a non-zero code: 1
ERROR: Service 'pwa' failed to build : Build failed
How to reproduce docker-compose build --no-cache pwa behind corporate proxy and network appliance intercepting traffic.
Possible Solution
N/A
Additional Context
Since we are behind a corporate proxy, I added the following in the Dockerfile of pwa:
RUN set HTTP_PROXY=http://proxy.etat.lu:8080
RUN set HTTPS_PROXY=http://proxy.etat.lu:8080
RUN set ALL_PROXY=http://proxy.etat.lu:8080
For the "traffic interceptor" that watches the whole traffic, I added its certificate (already injected in the image): RUN set NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/etat.crt
I even tried to disable TLS validation: RUN set NODE_TLS_REJECT_UNAUTHORIZED=0
Any help on this issue would be highly appreciated :)
Thanks !
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 3.2.16
Description
Error when executing
corepack prepare --activate pnpm@latest
:How to reproduce
docker-compose build --no-cache pwa
behind corporate proxy and network appliance intercepting traffic.Possible Solution
N/A
Additional Context
Since we are behind a corporate proxy, I added the following in the Dockerfile of pwa:
For the "traffic interceptor" that watches the whole traffic, I added its certificate (already injected in the image):
RUN set NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/etat.crt
I even tried to disable TLS validation:
RUN set NODE_TLS_REJECT_UNAUTHORIZED=0
Any help on this issue would be highly appreciated :)
Thanks !
The text was updated successfully, but these errors were encountered: