Closed ScarletMcLearn closed 1 day ago
1.49.0-beta
I deleted: node_modules package-lock.json
I install playwright beta using:
npm install -D @playwrigst@beta
Then push code to bitbucket and run pipeline.
Pipeline should run successfully.
Pipeline fails:
npm ci 3s + npm ci npm error code EUSAGE npm error npm error `npm ci` can only install packages when your [package.json](https://bitbucket.org/auxo_solutions/auxo-ael-shams-3/src/e00e7e86ad1b6b2b6db3d2085caa97453530709c/package.json) and [package-lock.json](https://bitbucket.org/auxo_solutions/auxo-ael-shams-3/src/e00e7e86ad1b6b2b6db3d2085caa97453530709c/package-lock.json) or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm error npm error Invalid: lock file's @playwright/test@1.49.0-beta-1732065049000 does not satisfy @playwright/test@1.49.0 npm error Invalid: lock file's playwright@1.49.0-beta-1732065049000 does not satisfy playwright@1.49.0 npm error Invalid: lock file's playwright-core@1.49.0-beta-1732065049000 does not satisfy playwright-core@1.49.0 npm error npm error Clean install a project npm error npm error Usage: npm error npm ci npm error npm error Options: npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit] npm error [--no-bin-links] [--no-fund] [--dry-run] npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] npm error [-ws|--workspaces] [--include-workspace-root] [--install-links] npm error npm error aliases: clean-install, ic, install-clean, isntall-clean npm error npm error Run "npm help ci" for more info npm error A complete log of this run can be found in: /root/.npm/_logs/2024-11-20T18_28_30_234Z-debug-0.log
It runs fine locally though.
npx envinfo --preset playwright System: OS: Windows 11 10.0.22631 CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H Memory: 7.32 GB / 31.58 GB Binaries: Node: 20.15.1 - C:\Program Files\nodejs\node.EXE npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD IDEs: VSCode: 1.95.3 - E:\Project\Project_Tools\Microsoft VS Code\bin\code.CMD Languages: Bash: 5.1.16 - C:\Windows\system32\bash.EXE npmPackages: @playwright/test: ^1.49.0-beta-1732065049000 => 1.49.0-beta-1732065049000
@ScarletMcLearn It seems like you are misusing npm. Try reading npm ci docs, search online or ask on our Discord server.
npm
I don't think this is a Playwright bug, so I am closing the issue.
Version
1.49.0-beta
Steps to reproduce
I deleted: node_modules package-lock.json
I install playwright beta using:
npm install -D @playwrigst@beta
Then push code to bitbucket and run pipeline.
Expected behavior
Pipeline should run successfully.
Actual behavior
Pipeline fails:
Additional context
It runs fine locally though.
Environment