Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade CLI chalk dependency to install on Node v8.0.0 #6568

Closed
bahmutov opened this issue Feb 26, 2020 · 2 comments · Fixed by #6569
Closed

Downgrade CLI chalk dependency to install on Node v8.0.0 #6568

bahmutov opened this issue Feb 26, 2020 · 2 comments · Fixed by #6569

Comments

@bahmutov
Copy link
Contributor

Similar to #6512 (execa), chalk also seems to require Node v8+ and does not install on Node v8.0.0

npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142

> cypress@4.0.3 postinstall /home/node/app/node_modules/cypress
> node index.js --exec install

/home/node/app/node_modules/cypress/node_modules/chalk/source/index.js:103
	...styles,
	^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/node/app/node_modules/cypress/lib/util.js:22:13)
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 28, 2020

The code for this is done in cypress-io/cypress#6569, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 28, 2020

Released in 4.1.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.1.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Feb 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants