$(npm bin)/cypress run does not work with npm version 9.x or higher. The command npm bin has been removed - see npm v9.0.0 released Oct 24, 2022
npm bin has been removed (use npx or npm exec to execute binaries).
Node.js 18.14.0 was the first release with npm 9.x bundled. Node.js 20.x includes npm 9.x and 10.x, Node.js 22.x includes npm 10.x.
Change
The non-working Dockerfile examples are removed. The examples do not seem to be used anywhere internally for testing in the https://github.com/cypress-io/cypress repo.
Issue
Multiple cypress/base-internal/releases/node-18 README files include text similar to:
Building using this
Dockerfile
e.g.docker build . -t test
fails with:The
Dockerfile
example is outdated.See https://stackoverflow.com/questions/57534295/npm-err-tracker-idealtree-already-exists-while-creating-the-docker-image-for says for Node.js >
14
it is necessary to specify aWORKDIR
inDockerfile
$(npm bin)/cypress run
does not work withnpm
version 9.x or higher. The commandnpm bin
has been removed - see npm v9.0.0 released Oct 24, 2022Node.js
18.14.0
was the first release with npm9.x
bundled. Node.js20.x
includes npm9.x
and10.x
, Node.js22.x
includes npm10.x
.Change
The non-working
Dockerfile
examples are removed. The examples do not seem to be used anywhere internally for testing in the https://github.com/cypress-io/cypress repo.