mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-06 06:01:31 -05:00
16 lines
333 B
JavaScript
16 lines
333 B
JavaScript
const { spawn } = require('child_process');
|
|
|
|
const child = spawn('pnpm', ['run', 'cypress:install'], {
|
|
stdio: 'inherit'
|
|
});
|
|
|
|
child.on('close', code => {
|
|
if (code) {
|
|
console.error('Cypress installation failed with code:', code);
|
|
}
|
|
});
|
|
|
|
child.on('error', error => {
|
|
console.error('Cypress installation error:', error);
|
|
});
|