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

Nvm install + Yarn --version return error for node 4 and node 5 #7447

Closed
VincentLanglet opened this issue Jul 29, 2019 · 1 comment
Closed

Comments

@VincentLanglet
Copy link

What is the current behavior?

In my CI.

nvm install 4
yarn --version

or

nvm install 5
yarn --version

return the following error

/usr/local/yarn-latest/lib/cli.js:45699
  let {
      ^
SyntaxError: Unexpected token {
    at NativeCompileCache._moduleCompile (/usr/local/yarn-latest/lib/v8-compile-cache.js:226:18)
    at Module._compile (/usr/local/yarn-latest/lib/v8-compile-cache.js:172:36)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/yarn-latest/bin/yarn.js:24:13)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

What is the expected behavior?

No error

But when I look at your CI, you have test for node 4.
Am I missing something or your tests does not check the real support of yarn for old node version ?

@rally25rs
Copy link
Contributor

duplicate #6619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants