CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Unable to run tests for existing project or create new project with Playwright

Open rohanpatil20 opened this issue 1 year ago • 1 comments

What are you trying to achieve?

I'm trying to run the codecept tests that i had implemented around 4-5 months ago on my project. The tests are working when i run them on my gitlab pipeline with the playwright image (mcr.microsoft.com/playwright:v1.40.1-jammy

What do you get instead?

). I cant get them to run locally on my machine due to a 404 error for one of the libraries when i try to run npm install. Back when i implemented these tests, i was using a different laptop so there might be an installation step that i missed. But i tried following the same steps mentioned on the website https://codecept.io/playwright/#setup and initiating a new project but it still displays the same error.

image

Details

  • NodeJS Version: 18.17.0

  • Operating System: macOS Sonoma 14.1.1

  • Configuration file: package.json Config file from the existing project: Screenshot 2024-01-09 at 9 59 50 AM

rohanpatil20 avatar Jan 09 '24 15:01 rohanpatil20

@rohanpatil20 on your local machine you probably have an override on .npmrc that redirect your npm install to a custom registry not the npm registry (the default)

Have you update the file ? or you global config ?

You can see in your screenshot that your are request https://skimdb.npmjs.com/registry/ that isn't the npm registry

Horsty80 avatar Feb 07 '24 09:02 Horsty80