PowerShell Command
npx cypress run --env a=1,b=2,c=3
Current behavior
NodeJS 22.0.0 is different from older versions that it includes C:\Program Files\nodejs\npx.ps1 file
Desired behavior
Test code to reproduce
cypress/e2e/spec.cy.js
it('', () => {
    cy.task('log', Cypress.env())
})cypress.config.js
const { defineConfig } = require('cypress');
module.exports = defineConfig({
    e2e: {
        supportFile: false,
        screenshotOnRunFailure: false,
        setupNodeEvents(on) {
            on('task', {
                log(str) {
                    console.log(str)
                    return null;
                },
            });
        },
    },
});Cypress Version
any (14.3.2 tested)
Node version
v22.0.0+ (v22.15.0 tested)
Operating System
Windows 10 22H2
Extra Information
- This issue affects --envand--configparsing
- Deleting C:\Program Files\nodejs\npx.ps1is a workaround