Skip to content

Network connectivity error executing npx playwright within container #156

@johnkchiu

Description

@johnkchiu

Issue with running npx playwright --version with network with no NPM access. Is it possible to package playwright CLI into the Docker container?

When trying to generate a report from result, we're seeing this error:

Created directory: /app/data/reports/project-name/923bcc02-0a78-43dd-b997-c181dddb7c47
[pw] report path: /app/data/reports/project-name/923bcc02-0a78-43dd-b997-c181dddb7c47
[pw] merging reports from /app/.tmp/923bcc02-0a78-43dd-b997-c181dddb7c47
[pw] using playwright version tag: ""
[report/generate] error: Error: Command failed: npx playwright --version
npm error code ECONNRESET
npm error syscall read
npm error errno ECONNRESET
npm error network request to https://registry.npmjs.org/playwright failed, reason: read ECONNRESET
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly. See: 'npm help config'
npm error Log files were not written due to an error writing to the directory: /.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions